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:
L. David Baron 2013-09-25 12:28:08 -07:00
Родитель 4e703ff333
Коммит 36acc15f31
1 изменённых файлов: 4 добавлений и 0 удалений

Просмотреть файл

@ -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");