Bug 720124 - Remove dead code from HTMLContentSink: mNumOpenIFRAMES; r=hsivonen

This commit is contained in:
Ms2ger 2012-01-25 08:50:03 +01:00
parent 4d51def3be
commit d4f442d47c

View File

@ -249,7 +249,6 @@ protected:
nsAutoTArray<SinkContext*, 8> mContextStack;
SinkContext* mCurrentContext;
SinkContext* mHeadContext;
PRInt32 mNumOpenIFRAMES;
// depth of containment within <noembed>, <noframes> etc
PRInt32 mInsideNoXXXTag;
@ -754,10 +753,6 @@ SinkContext::OpenContainer(const nsIParserNode& aNode)
mSink->mInsideNoXXXTag++;
break;
case eHTMLTag_iframe:
mSink->mNumOpenIFRAMES++;
break;
case eHTMLTag_script:
case eHTMLTag_style:
MOZ_NOT_REACHED("Must not use HTMLContentSink for styles and scripts.");
@ -889,10 +884,6 @@ SinkContext::CloseContainer(const nsHTMLTag aTag)
}
}
break;
case eHTMLTag_iframe:
mSink->mNumOpenIFRAMES--;
break;
#ifdef MOZ_MEDIA