зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1397815. Add memory reporting for button frame's mInnerFocusStyle and other additional style contexts. r=emilio
MozReview-Commit-ID: cJar2LDrCt
This commit is contained in:
Родитель
99d29db506
Коммит
d939b75081
|
@ -10715,6 +10715,15 @@ nsIFrame::AddSizeOfExcludingThisForTree(nsWindowSizes& aSizes) const
|
|||
sc->AddSizeOfIncludingThis(aSizes,
|
||||
&aSizes.mLayoutComputedValuesNonDom);
|
||||
}
|
||||
|
||||
// And our additional style contexts.
|
||||
int32_t index = 0;
|
||||
while (auto* extra = GetAdditionalStyleContext(index++)) {
|
||||
if (!aSizes.mState.HaveSeenPtr(extra)) {
|
||||
extra->AsServo()->AddSizeOfIncludingThis(aSizes,
|
||||
&aSizes.mLayoutComputedValuesNonDom);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
FrameChildListIterator iter(this);
|
||||
|
|
Загрузка…
Ссылка в новой задаче