Bug 377892 - Simple clipPath asserting and crashing. r+sr=tor

This commit is contained in:
longsonr@gmail.com 2007-04-19 01:21:49 -07:00
Родитель 88aa5f3018
Коммит 3ff2d59012
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -97,6 +97,7 @@ nsSVGClipPathFrame::InitSVG()
return rv;
mClipParentMatrix = NULL;
mInUse = PR_FALSE;
return NS_OK;
}

Просмотреть файл

@ -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;
}