mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-26 20:30:41 +00:00
Bug 774095 - Make sure that we call nsSVGEffects::UpdateEffects() on frames that are added after the first reflow. r=dholbert.
This commit is contained in:
parent
3491c5d24f
commit
de3e7e0ba9
@ -119,12 +119,17 @@ nsSVGDisplayContainerFrame::InsertFrames(ChildListID aListID,
|
||||
if (SVGFrame) {
|
||||
NS_ABORT_IF_FALSE(!(kid->GetStateBits() & NS_STATE_SVG_NONDISPLAY_CHILD),
|
||||
"Check for this explicitly in the |if|, then");
|
||||
bool isFirstReflow = (kid->GetStateBits() & NS_FRAME_FIRST_REFLOW);
|
||||
// Remove bits so that ScheduleBoundsUpdate will work:
|
||||
kid->RemoveStateBits(NS_FRAME_FIRST_REFLOW | NS_FRAME_IS_DIRTY |
|
||||
NS_FRAME_HAS_DIRTY_CHILDREN);
|
||||
// No need to invalidate the new kid's old bounds, so we just use
|
||||
// nsSVGUtils::ScheduleBoundsUpdate.
|
||||
nsSVGUtils::ScheduleBoundsUpdate(kid);
|
||||
if (isFirstReflow) {
|
||||
// Add back the NS_FRAME_FIRST_REFLOW bit:
|
||||
kid->AddStateBits(NS_FRAME_FIRST_REFLOW);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user