Skip to content

Commit

Permalink
Bug 1289157 - remove eSurvivingInUpdate flag from Accessible class, r…
Browse files Browse the repository at this point in the history
…=surkov
  • Loading branch information
Nick Fox committed Aug 24, 2017
1 parent da09c8b commit 27ff4d1
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions accessible/generic/Accessible.h
Original file line number Diff line number Diff line change
Expand Up @@ -899,19 +899,6 @@ class Accessible : public nsISupports
bool NeedsDOMUIEvent() const
{ return !(mStateFlags & eIgnoreDOMUIEvent); }

/**
* Get/set survivingInUpdate bit on child indicating that parent recollects
* its children.
*/
bool IsSurvivingInUpdate() const { return mStateFlags & eSurvivingInUpdate; }
void SetSurvivingInUpdate(bool aIsSurviving)
{
if (aIsSurviving)
mStateFlags |= eSurvivingInUpdate;
else
mStateFlags &= ~eSurvivingInUpdate;
}

/**
* Get/set repositioned bit indicating that the accessible was moved in
* the accessible tree, i.e. the accessible tree structure differs from DOM.
Expand Down Expand Up @@ -1039,11 +1026,10 @@ class Accessible : public nsISupports
eGroupInfoDirty = 1 << 5, // accessible needs to update group info
eKidsMutating = 1 << 6, // subtree is being mutated
eIgnoreDOMUIEvent = 1 << 7, // don't process DOM UI events for a11y events
eSurvivingInUpdate = 1 << 8, // parent drops children to recollect them
eRelocated = 1 << 9, // accessible was moved in tree
eNoXBLKids = 1 << 10, // accessible don't allows XBL children
eNoKidsFromDOM = 1 << 11, // accessible doesn't allow children from DOM
eHasTextKids = 1 << 12, // accessible have a text leaf in children
eRelocated = 1 << 8, // accessible was moved in tree
eNoXBLKids = 1 << 9, // accessible don't allows XBL children
eNoKidsFromDOM = 1 << 10, // accessible doesn't allow children from DOM
eHasTextKids = 1 << 11, // accessible have a text leaf in children

eLastStateFlag = eNoKidsFromDOM
};
Expand Down Expand Up @@ -1144,7 +1130,7 @@ class Accessible : public nsISupports
nsTArray<Accessible*> mChildren;
int32_t mIndexInParent;

static const uint8_t kStateFlagsBits = 13;
static const uint8_t kStateFlagsBits = 12;
static const uint8_t kContextFlagsBits = 3;
static const uint8_t kTypeBits = 6;
static const uint8_t kGenericTypesBits = 16;
Expand Down

0 comments on commit 27ff4d1

Please sign in to comment.