From 25a3fd42bf9f0dcd4ac61275d4897d6d1926a40a Mon Sep 17 00:00:00 2001 From: "locka%iol.ie" Date: Wed, 2 Apr 2003 13:59:09 +0000 Subject: [PATCH] Attempt to fix pedantic bustage caused by checkin for b=191023 git-svn-id: svn://10.0.0.236/trunk@140587 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/content/html/document/src/nsHTMLContentSink.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mozilla/content/html/document/src/nsHTMLContentSink.cpp b/mozilla/content/html/document/src/nsHTMLContentSink.cpp index 0b0d27c1c03..f31857a95d7 100644 --- a/mozilla/content/html/document/src/nsHTMLContentSink.cpp +++ b/mozilla/content/html/document/src/nsHTMLContentSink.cpp @@ -1565,9 +1565,10 @@ SinkContext::OpenContainer(const nsIParserNode& aNode) // Create new container content object nsHTMLTag nodeType = nsHTMLTag(aNode.GetNodeType()); nsIHTMLContent* content; + nsIDocShell *docShell = nsnull; + if (mSink->mFrameset) docshell = (nsIDocShell *) mSink->mDocShell; rv = mSink->CreateContentObject(aNode, nodeType, mSink->mCurrentForm, - mSink->mFrameset ? mSink->mDocShell : nsnull, - &content); + docshell, &content); NS_ENSURE_SUCCESS(rv, rv); mStack[mStackPos].mType = nodeType;