mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 828312 patch 10: Add assertions to check that handling of nsChangeHint_ChildrenOnlyTransform doesn't need to check continuations. r=bzbarsky
This is part of the patch stack making change hints apply across all continuations and block-in-inline siblings.
This commit is contained in:
parent
b0e32cdf38
commit
b19b847ec9
@ -712,6 +712,10 @@ RestyleManager::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
|
||||
// The overflow areas of the child frames need to be updated:
|
||||
nsIFrame* hintFrame = GetFrameForChildrenOnlyTransformHint(frame);
|
||||
nsIFrame* childFrame = hintFrame->GetFirstPrincipalChild();
|
||||
NS_ASSERTION(!nsLayoutUtils::GetNextContinuationOrSpecialSibling(frame),
|
||||
"SVG frames should not have continuations or special siblings");
|
||||
NS_ASSERTION(!nsLayoutUtils::GetNextContinuationOrSpecialSibling(hintFrame),
|
||||
"SVG frames should not have continuations or special siblings");
|
||||
for ( ; childFrame; childFrame = childFrame->GetNextSibling()) {
|
||||
NS_ABORT_IF_FALSE(childFrame->IsFrameOfType(nsIFrame::eSVG),
|
||||
"Not expecting non-SVG children");
|
||||
|
Loading…
Reference in New Issue
Block a user