mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1047928 patch 5 - Pass restyle hint to RestyleManager::PostRebuildAllStyleDataEvent. r=bzbarsky
This patch is not intended to contain any changes in behavior.
This commit is contained in:
parent
a7e48bc5ef
commit
688f41fcb6
@ -1689,7 +1689,8 @@ RestyleManager::PostRestyleEventInternal(bool aForLazyConstruction)
|
||||
}
|
||||
|
||||
void
|
||||
RestyleManager::PostRebuildAllStyleDataEvent(nsChangeHint aExtraHint)
|
||||
RestyleManager::PostRebuildAllStyleDataEvent(nsChangeHint aExtraHint,
|
||||
nsRestyleHint aRestyleHint)
|
||||
{
|
||||
NS_ASSERTION(!(aExtraHint & nsChangeHint_ReconstructFrame),
|
||||
"Should not reconstruct the root of the frame tree. "
|
||||
@ -1697,8 +1698,7 @@ RestyleManager::PostRebuildAllStyleDataEvent(nsChangeHint aExtraHint)
|
||||
|
||||
mRebuildAllStyleData = true;
|
||||
NS_UpdateHint(mRebuildAllExtraHint, aExtraHint);
|
||||
// FIXME: pass through from callers
|
||||
mRebuildAllRestyleHint = eRestyle_Subtree;
|
||||
mRebuildAllRestyleHint |= aRestyleHint;
|
||||
|
||||
// Get a restyle event posted if necessary
|
||||
PostRestyleEventInternal(false);
|
||||
|
@ -389,8 +389,11 @@ public:
|
||||
* in a system font size, or to fix things up when an optimization in the
|
||||
* style data has become invalid. We assume that the root frame will not
|
||||
* need to be reframed.
|
||||
*
|
||||
* For parameters, see RebuildAllStyleData.
|
||||
*/
|
||||
void PostRebuildAllStyleDataEvent(nsChangeHint aExtraHint);
|
||||
void PostRebuildAllStyleDataEvent(nsChangeHint aExtraHint,
|
||||
nsRestyleHint aRestyleHint);
|
||||
|
||||
#ifdef RESTYLE_LOGGING
|
||||
/**
|
||||
|
@ -1877,7 +1877,8 @@ nsPresContext::PostRebuildAllStyleDataEvent(nsChangeHint aExtraHint)
|
||||
// We must have been torn down. Nothing to do here.
|
||||
return;
|
||||
}
|
||||
RestyleManager()->PostRebuildAllStyleDataEvent(aExtraHint);
|
||||
// FIXME: Pass through from callers.
|
||||
RestyleManager()->PostRebuildAllStyleDataEvent(aExtraHint, eRestyle_Subtree);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user