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
This commit is contained in:
@@ -1065,14 +1065,12 @@ nsTableCellFrame::GetBorderWidth(WritingMode aWM) const
|
||||
}
|
||||
|
||||
void
|
||||
nsTableCellFrame::DoUpdateStyleOfOwnedAnonBoxes(ServoStyleSet& aStyleSet,
|
||||
nsStyleChangeList& aChangeList,
|
||||
nsChangeHint aHintForThisFrame)
|
||||
nsTableCellFrame::AppendDirectlyOwnedAnonBoxes(nsTArray<OwnedAnonBox>& aResult)
|
||||
{
|
||||
nsIFrame* kid = mFrames.FirstChild();
|
||||
MOZ_ASSERT(kid && !kid->GetNextSibling(),
|
||||
"Table cells should have just one child");
|
||||
UpdateStyleOfChildAnonBox(kid, aStyleSet, aChangeList, aHintForThisFrame);
|
||||
aResult.AppendElement(OwnedAnonBox(this, kid));
|
||||
}
|
||||
|
||||
#ifdef DEBUG_FRAME_DUMP
|
||||
|
||||
Reference in New Issue
Block a user