mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 900284: Use #ifdef ACCESSIBILITY around member variables only used inside #ifdef ACCESSIBILITY, to avoid clang warnings (and reduce object size with --disable-accessibility). r=dbaron
This commit is contained in:
parent
315e2872cb
commit
3bb4b7a43b
@ -1921,10 +1921,12 @@ ElementRestyler::ElementRestyler(nsPresContext* aPresContext,
|
||||
, mRestyleTracker(aRestyleTracker)
|
||||
, mTreeMatchContext(aTreeMatchContext)
|
||||
, mResolvedChild(nullptr)
|
||||
#ifdef ACCESSIBILITY
|
||||
, mDesiredA11yNotifications(eSendAllNotifications)
|
||||
, mKidsDesiredA11yNotifications(mDesiredA11yNotifications)
|
||||
, mOurA11yNotification(eDontNotify)
|
||||
, mVisibleKidsOfHiddenElement(aVisibleKidsOfHiddenElement)
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
@ -1946,10 +1948,12 @@ ElementRestyler::ElementRestyler(const ElementRestyler& aParentRestyler,
|
||||
, mRestyleTracker(aParentRestyler.mRestyleTracker)
|
||||
, mTreeMatchContext(aParentRestyler.mTreeMatchContext)
|
||||
, mResolvedChild(nullptr)
|
||||
#ifdef ACCESSIBILITY
|
||||
, mDesiredA11yNotifications(aParentRestyler.mKidsDesiredA11yNotifications)
|
||||
, mKidsDesiredA11yNotifications(mDesiredA11yNotifications)
|
||||
, mOurA11yNotification(eDontNotify)
|
||||
, mVisibleKidsOfHiddenElement(aParentRestyler.mVisibleKidsOfHiddenElement)
|
||||
#endif
|
||||
{
|
||||
if (aConstructorFlags & FOR_OUT_OF_FLOW_CHILD) {
|
||||
mHintsHandled = NS_SubtractHint(mHintsHandled, nsChangeHint_AllReflowHints);
|
||||
@ -1975,10 +1979,12 @@ ElementRestyler::ElementRestyler(ParentContextFromChildFrame,
|
||||
, mRestyleTracker(aParentRestyler.mRestyleTracker)
|
||||
, mTreeMatchContext(aParentRestyler.mTreeMatchContext)
|
||||
, mResolvedChild(nullptr)
|
||||
#ifdef ACCESSIBILITY
|
||||
, mDesiredA11yNotifications(aParentRestyler.mDesiredA11yNotifications)
|
||||
, mKidsDesiredA11yNotifications(mDesiredA11yNotifications)
|
||||
, mOurA11yNotification(eDontNotify)
|
||||
, mVisibleKidsOfHiddenElement(aParentRestyler.mVisibleKidsOfHiddenElement)
|
||||
#endif
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -382,11 +382,13 @@ private:
|
||||
TreeMatchContext& mTreeMatchContext;
|
||||
nsIFrame* mResolvedChild; // child that provides our parent style context
|
||||
|
||||
#ifdef ACCESSIBILITY
|
||||
const DesiredA11yNotifications mDesiredA11yNotifications;
|
||||
DesiredA11yNotifications mKidsDesiredA11yNotifications;
|
||||
A11yNotificationType mOurA11yNotification;
|
||||
nsTArray<nsIContent*>& mVisibleKidsOfHiddenElement;
|
||||
bool mWasFrameVisible;
|
||||
#endif
|
||||
};
|
||||
|
||||
} // namespace mozilla
|
||||
|
Loading…
Reference in New Issue
Block a user