diff --git a/mozilla/content/html/style/src/nsHTMLStyleSheet.cpp b/mozilla/content/html/style/src/nsHTMLStyleSheet.cpp
index c504e929043..3a9882133f5 100644
--- a/mozilla/content/html/style/src/nsHTMLStyleSheet.cpp
+++ b/mozilla/content/html/style/src/nsHTMLStyleSheet.cpp
@@ -1586,6 +1586,12 @@ HTMLStyleSheetImpl::ConstructFrameByTag(nsIPresContext* aPresContext,
}
else if (nsHTMLAtoms::object == aTag) {
rv = NS_NewObjectFrame(aNewFrame);
+ //rv = NS_NewObjectFrame(aContent, aParentFrame, aNewFrame);
+ nsIFrame *blockFrame;
+ NS_NewBlockFrame(blockFrame, 0);
+ blockFrame->Init(*aPresContext, aContent, aNewFrame, aStyleContext);
+ aNewFrame = blockFrame;
+ processChildren = PR_TRUE;
}
else if (nsHTMLAtoms::body == aTag) {
rv = NS_NewBodyFrame(aNewFrame, NS_BODY_THE_BODY|NS_BODY_NO_AUTO_MARGINS);
diff --git a/mozilla/layout/html/style/src/nsHTMLStyleSheet.cpp b/mozilla/layout/html/style/src/nsHTMLStyleSheet.cpp
index c504e929043..3a9882133f5 100644
--- a/mozilla/layout/html/style/src/nsHTMLStyleSheet.cpp
+++ b/mozilla/layout/html/style/src/nsHTMLStyleSheet.cpp
@@ -1586,6 +1586,12 @@ HTMLStyleSheetImpl::ConstructFrameByTag(nsIPresContext* aPresContext,
}
else if (nsHTMLAtoms::object == aTag) {
rv = NS_NewObjectFrame(aNewFrame);
+ //rv = NS_NewObjectFrame(aContent, aParentFrame, aNewFrame);
+ nsIFrame *blockFrame;
+ NS_NewBlockFrame(blockFrame, 0);
+ blockFrame->Init(*aPresContext, aContent, aNewFrame, aStyleContext);
+ aNewFrame = blockFrame;
+ processChildren = PR_TRUE;
}
else if (nsHTMLAtoms::body == aTag) {
rv = NS_NewBodyFrame(aNewFrame, NS_BODY_THE_BODY|NS_BODY_NO_AUTO_MARGINS);
diff --git a/mozilla/layout/style/nsHTMLStyleSheet.cpp b/mozilla/layout/style/nsHTMLStyleSheet.cpp
index c504e929043..3a9882133f5 100644
--- a/mozilla/layout/style/nsHTMLStyleSheet.cpp
+++ b/mozilla/layout/style/nsHTMLStyleSheet.cpp
@@ -1586,6 +1586,12 @@ HTMLStyleSheetImpl::ConstructFrameByTag(nsIPresContext* aPresContext,
}
else if (nsHTMLAtoms::object == aTag) {
rv = NS_NewObjectFrame(aNewFrame);
+ //rv = NS_NewObjectFrame(aContent, aParentFrame, aNewFrame);
+ nsIFrame *blockFrame;
+ NS_NewBlockFrame(blockFrame, 0);
+ blockFrame->Init(*aPresContext, aContent, aNewFrame, aStyleContext);
+ aNewFrame = blockFrame;
+ processChildren = PR_TRUE;
}
else if (nsHTMLAtoms::body == aTag) {
rv = NS_NewBodyFrame(aNewFrame, NS_BODY_THE_BODY|NS_BODY_NO_AUTO_MARGINS);