Move assertion up. r=jwatt. no bug. DONTBUILD.

--HG--
extra : rebase_source : cbe99f683de3407ceb40b35c96d3d80d3d4a76a8
This commit is contained in:
Robert Longson 2012-11-06 18:57:58 +00:00
parent 3856910e76
commit 85f28c270e

View File

@ -8190,6 +8190,8 @@ nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
// problems could arise.
RecreateFramesForContent(content, false);
} else {
NS_ASSERTION(frame, "This shouldn't happen");
if ((frame->GetStateBits() & NS_FRAME_SVG_LAYOUT) &&
(frame->GetStateBits() & NS_STATE_SVG_NONDISPLAY_CHILD)) {
// frame does not maintain overflow rects, so avoid calling
@ -8199,7 +8201,6 @@ nsCSSFrameConstructor::ProcessRestyledFrames(nsStyleChangeList& aChangeList)
nsChangeHint_ChildrenOnlyTransform));
}
NS_ASSERTION(frame, "This shouldn't happen");
if (hint & nsChangeHint_UpdateEffects) {
nsSVGEffects::UpdateEffects(frame);
}