From 4ad5da01bf8ef728a6d60c77c4545d0fe23c31fd Mon Sep 17 00:00:00 2001 From: Jonathan Watt Date: Wed, 24 Apr 2013 10:13:28 +0100 Subject: [PATCH] Bug 864770 - Stop calling nsSVGUtils::InvalidateBounds in nsSVGEffects code, and use DLBI instead. r=mattwoodrow --- layout/svg/nsSVGEffects.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/layout/svg/nsSVGEffects.cpp b/layout/svg/nsSVGEffects.cpp index 980055a898c..97b75db4847 100644 --- a/layout/svg/nsSVGEffects.cpp +++ b/layout/svg/nsSVGEffects.cpp @@ -280,7 +280,7 @@ nsSVGMarkerProperty::DoUpdate() if (!(mFrame->GetStateBits() & NS_FRAME_IN_REFLOW)) { // XXXjwatt: We need to unify SVG into standard reflow so we can just use // nsChangeHint_NeedReflow | nsChangeHint_NeedDirtyReflow here. - nsSVGUtils::InvalidateBounds(mFrame, false); + nsSVGEffects::InvalidateRenderingObservers(mFrame); // XXXSDL KILL THIS!!! nsSVGUtils::ScheduleReflowSVG(mFrame); } @@ -337,7 +337,8 @@ nsSVGPaintingProperty::DoUpdate() return; if (mFrame->GetStateBits() & NS_FRAME_SVG_LAYOUT) { - nsSVGUtils::InvalidateBounds(mFrame); + nsSVGEffects::InvalidateRenderingObservers(mFrame); + mFrame->InvalidateFrameSubtree(); } else { InvalidateAllContinuations(mFrame); }