diff --git a/content/html/document/src/nsHTMLContentSink.cpp b/content/html/document/src/nsHTMLContentSink.cpp
index 39748ee9884..ce1eacf8210 100644
--- a/content/html/document/src/nsHTMLContentSink.cpp
+++ b/content/html/document/src/nsHTMLContentSink.cpp
@@ -249,7 +249,6 @@ protected:
nsAutoTArray mContextStack;
SinkContext* mCurrentContext;
SinkContext* mHeadContext;
- PRInt32 mNumOpenIFRAMES;
// depth of containment within , 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