Bug 1364361 - Part 1: Refactor frame anon box restyling machinery so it can return a list of anon boxes. r=bholley,bz
MozReview-Commit-ID: 3InVAUw8djN * * * Bug 1364361 - Followup to address review comment. r=me MozReview-Commit-ID: IpdoSon9MAj
This commit is contained in:
@@ -396,16 +396,12 @@ nsHTMLButtonControlFrame::SetAdditionalStyleContext(int32_t aIndex,
|
||||
}
|
||||
|
||||
void
|
||||
nsHTMLButtonControlFrame::DoUpdateStyleOfOwnedAnonBoxes(
|
||||
ServoStyleSet& aStyleSet,
|
||||
nsStyleChangeList& aChangeList,
|
||||
nsChangeHint aHintForThisFrame)
|
||||
nsHTMLButtonControlFrame::AppendDirectlyOwnedAnonBoxes(nsTArray<OwnedAnonBox>& aResult)
|
||||
{
|
||||
MOZ_ASSERT(mFrames.FirstChild(), "Must have our button-content anon box");
|
||||
MOZ_ASSERT(!mFrames.FirstChild()->GetNextSibling(),
|
||||
"Must only have our button-content anon box");
|
||||
UpdateStyleOfChildAnonBox(mFrames.FirstChild(),
|
||||
aStyleSet, aChangeList, aHintForThisFrame);
|
||||
aResult.AppendElement(OwnedAnonBox(mFrames.FirstChild()));
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
|
||||
Reference in New Issue
Block a user