Bug 1347411 part 2. Fix stylo to properly update styles for the various frames that use FCDATA_WITH_WRAPPING_BLOCK to wrap an anonymous block around their kids. r=heycam
This handles ::-moz-button-content, ::-moz-html-canvas-content, ::-moz-svg-text, ::-moz-svg-foreign-content. MozReview-Commit-ID: 3xk7214X2uR
This commit is contained in:
@@ -400,6 +400,19 @@ nsHTMLButtonControlFrame::SetAdditionalStyleContext(int32_t aIndex,
|
||||
mRenderer.SetStyleContext(aIndex, aStyleContext);
|
||||
}
|
||||
|
||||
void
|
||||
nsHTMLButtonControlFrame::DoUpdateStyleOfOwnedAnonBoxes(
|
||||
ServoStyleSet& aStyleSet,
|
||||
nsStyleChangeList& aChangeList,
|
||||
nsChangeHint aHintForThisFrame)
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
void
|
||||
nsHTMLButtonControlFrame::AppendFrames(ChildListID aListID,
|
||||
|
||||
Reference in New Issue
Block a user