Backout 5d59a9ec28f4 for Linux PGO compile errors

This commit is contained in:
Nick Thomas 2012-12-20 23:26:32 +13:00
parent 34733c2752
commit 7ab338f908
9 changed files with 19 additions and 35 deletions

View File

@ -5,7 +5,7 @@
#include "AccIterator.h"
#include "nsAccessibilityService.h"
#include "Accessible-inl.h"
#include "Accessible.h"
#include "mozilla/dom/Element.h"
#include "nsBindingManager.h"

View File

@ -9,7 +9,6 @@
#define _nsARIAMap_H_
#include "ARIAStateMap.h"
#include "mozilla/a11y/AccTypes.h"
#include "mozilla/a11y/Role.h"
#include "nsIAtom.h"
@ -150,12 +149,6 @@ struct nsRoleMapEntry
bool Is(nsIAtom* aARIARole) const
{ return *roleAtom == aARIARole; }
/**
* Return true if ARIA role has the given accessible type.
*/
bool IsOfType(mozilla::a11y::AccGenericType aType) const
{ return accTypes & aType; }
/**
* Return ARIA role.
*/

View File

@ -31,11 +31,12 @@ Accessible::ARIARole()
return ARIATransformRole(mRoleMapEntry->role);
}
inline bool
Accessible::HasGenericType(AccGenericType aType) const
inline void
Accessible::SetRoleMapEntry(nsRoleMapEntry* aRoleMapEntry)
{
return (mGenericTypes & aType) ||
(mRoleMapEntry && mRoleMapEntry->IsOfType(aType));
mRoleMapEntry = aRoleMapEntry;
if (mRoleMapEntry)
mGenericTypes |= mRoleMapEntry->accTypes;
}
inline bool

View File

@ -304,8 +304,7 @@ public:
/**
* Set the ARIA role map entry for a new accessible.
*/
void SetRoleMapEntry(nsRoleMapEntry* aRoleMapEntry)
{ mRoleMapEntry = aRoleMapEntry; }
void SetRoleMapEntry(nsRoleMapEntry* aRoleMapEntry);
/**
* Update the children cache.
@ -469,17 +468,17 @@ public:
bool IsApplication() const { return mType == eApplicationType; }
bool IsAutoComplete() const { return HasGenericType(eAutoComplete); }
bool IsAutoComplete() const { return mGenericTypes & eAutoComplete; }
bool IsAutoCompletePopup() const
{ return HasGenericType(eAutoCompletePopup); }
{ return mGenericTypes & eAutoCompletePopup; }
bool IsCombobox() const { return HasGenericType(eCombobox); }
bool IsCombobox() const { return mGenericTypes & eCombobox; }
bool IsDoc() const { return HasGenericType(eDocument); }
bool IsDoc() const { return mGenericTypes & eDocument; }
DocAccessible* AsDoc();
bool IsHyperText() const { return HasGenericType(eHyperText); }
bool IsHyperText() const { return mGenericTypes & eHyperText; }
HyperTextAccessible* AsHyperText();
bool IsHTMLFileInput() const { return mType == eHTMLFileInputType; }
@ -495,11 +494,11 @@ public:
bool IsImageMap() const { return mType == eImageMapType; }
HTMLImageMapAccessible* AsImageMap();
bool IsList() const { return HasGenericType(eList); }
bool IsList() const { return mGenericTypes & eList; }
bool IsListControl() const { return HasGenericType(eListControl); }
bool IsListControl() const { return mGenericTypes & eListControl; }
bool IsMenuButton() const { return HasGenericType(eMenuButton); }
bool IsMenuButton() const { return mGenericTypes & eMenuButton; }
bool IsMenuPopup() const { return mType == eMenuPopupType; }
@ -508,14 +507,14 @@ public:
bool IsRoot() const { return mType == eRootType; }
a11y::RootAccessible* AsRoot();
bool IsSelect() const { return HasGenericType(eSelect); }
bool IsSelect() const { return mGenericTypes & eSelect; }
bool IsTable() const { return HasGenericType(eTable); }
bool IsTable() const { return mGenericTypes & eTable; }
virtual TableAccessible* AsTable() { return nullptr; }
virtual TableCellAccessible* AsTableCell() { return nullptr; }
bool IsTableRow() const { return HasGenericType(eTableRow); }
bool IsTableRow() const { return mGenericTypes & eTableRow; }
bool IsTextLeaf() const { return mType == eTextLeafType; }
TextLeafAccessible* AsTextLeaf();
@ -525,11 +524,6 @@ public:
bool IsXULTree() const { return mType == eXULTreeType; }
XULTreeAccessible* AsXULTree();
/**
* Return true if the accessible belongs to the given accessible type.
*/
bool HasGenericType(AccGenericType aType) const;
//////////////////////////////////////////////////////////////////////////////
// ActionAccessible

View File

@ -5,7 +5,6 @@
#include "OuterDocAccessible.h"
#include "Accessible-inl.h"
#include "nsAccUtils.h"
#include "DocAccessible.h"
#include "Role.h"

View File

@ -7,7 +7,6 @@
#import "mozHTMLAccessible.h"
#import "Accessible-inl.h"
#import "HyperTextAccessible.h"
#import "nsCocoaUtils.h"

View File

@ -3,7 +3,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "Accessible-inl.h"
#include "AccessibleWrap.h"
#include "TextLeafAccessible.h"

View File

@ -5,7 +5,6 @@
#include "XULAlertAccessible.h"
#include "Accessible-inl.h"
#include "Role.h"
#include "States.h"

View File

@ -6,7 +6,6 @@
#include "XULTreeAccessible.h"
#include "Accessible-inl.h"
#include "DocAccessible-inl.h"
#include "nsAccCache.h"
#include "nsAccUtils.h"