diff --git a/content/html/content/src/nsHTMLIFrameElement.cpp b/content/html/content/src/nsHTMLIFrameElement.cpp
index 468befa4fdf0..ffec1781daba 100644
--- a/content/html/content/src/nsHTMLIFrameElement.cpp
+++ b/content/html/content/src/nsHTMLIFrameElement.cpp
@@ -93,7 +93,7 @@ public:
NS_IMPL_IHTMLCONTENT_USING_GENERIC(mInner)
protected:
- nsGenericHTMLLeafElement mInner;
+ nsGenericHTMLContainerElement mInner;
};
nsresult
diff --git a/layout/html/content/src/nsHTMLIFrameElement.cpp b/layout/html/content/src/nsHTMLIFrameElement.cpp
index 468befa4fdf0..ffec1781daba 100644
--- a/layout/html/content/src/nsHTMLIFrameElement.cpp
+++ b/layout/html/content/src/nsHTMLIFrameElement.cpp
@@ -93,7 +93,7 @@ public:
NS_IMPL_IHTMLCONTENT_USING_GENERIC(mInner)
protected:
- nsGenericHTMLLeafElement mInner;
+ nsGenericHTMLContainerElement mInner;
};
nsresult