From db14979234510cdfdc9a34794842b925515ca4ed Mon Sep 17 00:00:00 2001 From: Robert Longson Date: Wed, 22 Jun 2011 21:07:31 +0100 Subject: [PATCH] Bug 666068 - Speed up nsSVGIntegrationUtils::UsingEffectsForFrame. r=jwatt,jmuizelaar --- layout/svg/base/src/nsSVGIntegrationUtils.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layout/svg/base/src/nsSVGIntegrationUtils.cpp b/layout/svg/base/src/nsSVGIntegrationUtils.cpp index a52b7c9da4c..cc106de4bac 100644 --- a/layout/svg/base/src/nsSVGIntegrationUtils.cpp +++ b/layout/svg/base/src/nsSVGIntegrationUtils.cpp @@ -55,9 +55,11 @@ PRBool nsSVGIntegrationUtils::UsingEffectsForFrame(const nsIFrame* aFrame) { + if (aFrame->IsFrameOfType(nsIFrame::eSVG)) { + return PR_FALSE; + } const nsStyleSVGReset *style = aFrame->GetStyleSVGReset(); - return (style->mFilter || style->mClipPath || style->mMask) && - !aFrame->IsFrameOfType(nsIFrame::eSVG); + return (style->mFilter || style->mClipPath || style->mMask); } /* static */ nsRect