зеркало из https://github.com/mozilla/gecko-dev.git
Bug 625289 patch 5 - Create a ReframingStyleContexts struct during restyling. r=heycam
This commit is contained in:
Родитель
c978ecaab8
Коммит
86de53b549
|
@ -3076,6 +3076,13 @@ RestyleManager::ComputeAndProcessStyleChange(nsIFrame* aFrame,
|
|||
RestyleTracker& aRestyleTracker,
|
||||
nsRestyleHint aRestyleHint)
|
||||
{
|
||||
// Create a ReframingStyleContexts struct on the stack and put it in
|
||||
// our mReframingStyleContexts for the scope of this function.
|
||||
MOZ_ASSERT(!mReframingStyleContexts, "shouldn't call recursively");
|
||||
AutoRestore<ReframingStyleContexts*> ar(mReframingStyleContexts);
|
||||
ReframingStyleContexts reframingStyleContexts;
|
||||
mReframingStyleContexts = &reframingStyleContexts;
|
||||
|
||||
nsStyleChangeList changeList;
|
||||
ComputeStyleChangeFor(aFrame, &changeList, aMinChange,
|
||||
aRestyleTracker, aRestyleHint);
|
||||
|
|
Загрузка…
Ссылка в новой задаче