From 3ff2d59012d87a0eb5f0dad5324f9bf02e1675c0 Mon Sep 17 00:00:00 2001 From: "longsonr@gmail.com" Date: Thu, 19 Apr 2007 01:21:49 -0700 Subject: [PATCH] Bug 377892 - Simple clipPath asserting and crashing. r+sr=tor --- layout/svg/base/src/nsSVGClipPathFrame.cpp | 1 + layout/svg/base/src/nsSVGClipPathFrame.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/layout/svg/base/src/nsSVGClipPathFrame.cpp b/layout/svg/base/src/nsSVGClipPathFrame.cpp index d50e0287aa5d..f02a02312885 100644 --- a/layout/svg/base/src/nsSVGClipPathFrame.cpp +++ b/layout/svg/base/src/nsSVGClipPathFrame.cpp @@ -97,6 +97,7 @@ nsSVGClipPathFrame::InitSVG() return rv; mClipParentMatrix = NULL; + mInUse = PR_FALSE; return NS_OK; } diff --git a/layout/svg/base/src/nsSVGClipPathFrame.h b/layout/svg/base/src/nsSVGClipPathFrame.h index bd780d692b15..3d685a8b4e25 100644 --- a/layout/svg/base/src/nsSVGClipPathFrame.h +++ b/layout/svg/base/src/nsSVGClipPathFrame.h @@ -87,7 +87,8 @@ class nsSVGClipPathFrame : public nsSVGClipPathFrameBase class AutoClipPathReferencer { public: - AutoClipPathReferencer(nsSVGClipPathFrame *aFrame) { + AutoClipPathReferencer(nsSVGClipPathFrame *aFrame) + : mFrame(aFrame) { NS_ASSERTION(mFrame->mInUse == PR_FALSE, "reference loop!"); mFrame->mInUse = PR_TRUE; }