diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index e6faba21b0d..5de178bc814 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -12383,6 +12383,9 @@ nsCSSFrameConstructor::CreateTreeWidgetContent(nsIPresContext* aPresContext, nsCOMPtr tag; aChild->GetTag(*getter_AddRefs(tag)); + PRInt32 namespaceID; + aChild->GetNameSpaceID(namespaceID); + nsCOMPtr styleContext; rv = ResolveStyleContext(aPresContext, aParentFrame, aChild, tag, getter_AddRefs(styleContext)); @@ -12398,7 +12401,8 @@ nsCSSFrameConstructor::CreateTreeWidgetContent(nsIPresContext* aPresContext, } } - rv = ConstructFrame(shell, aPresContext, state, aChild, aParentFrame, frameItems); + rv = ConstructFrameInternal(shell, aPresContext, state, aChild, aParentFrame, tag, namespaceID, + styleContext, frameItems, PR_FALSE); nsIFrame* newFrame = frameItems.childList; *aNewFrame = newFrame; diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index e6faba21b0d..5de178bc814 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -12383,6 +12383,9 @@ nsCSSFrameConstructor::CreateTreeWidgetContent(nsIPresContext* aPresContext, nsCOMPtr tag; aChild->GetTag(*getter_AddRefs(tag)); + PRInt32 namespaceID; + aChild->GetNameSpaceID(namespaceID); + nsCOMPtr styleContext; rv = ResolveStyleContext(aPresContext, aParentFrame, aChild, tag, getter_AddRefs(styleContext)); @@ -12398,7 +12401,8 @@ nsCSSFrameConstructor::CreateTreeWidgetContent(nsIPresContext* aPresContext, } } - rv = ConstructFrame(shell, aPresContext, state, aChild, aParentFrame, frameItems); + rv = ConstructFrameInternal(shell, aPresContext, state, aChild, aParentFrame, tag, namespaceID, + styleContext, frameItems, PR_FALSE); nsIFrame* newFrame = frameItems.childList; *aNewFrame = newFrame;