From c2b06c9bd55b36aa94eefd0b69cffc8a436390a3 Mon Sep 17 00:00:00 2001 From: "av%netscape.com" Date: Thu, 6 Sep 2001 01:26:14 +0000 Subject: [PATCH] Fixing bug 96804 -- isReplaced is not set for object frames created with tag, patch by timkoogleblowsgoats@yahoo.com, r=peterl, sr=attinasi git-svn-id: svn://10.0.0.236/trunk@102365 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 1 + mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 788e03c8f1e..f9aaf8d9f16 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -4875,6 +4875,7 @@ nsCSSFrameConstructor::ConstructFrameByTag(nsIPresShell* aPresShell, if (!aState.mPseudoFrames.IsEmpty()) { // process pending pseudo frames ProcessPseudoFrames(aPresContext, aState.mPseudoFrames, aFrameItems); } + isReplaced = PR_TRUE; rv = NS_NewObjectFrame(aPresShell, &newFrame); } else if (nsHTMLAtoms::fieldset == aTag) { diff --git a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp index 788e03c8f1e..f9aaf8d9f16 100644 --- a/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -4875,6 +4875,7 @@ nsCSSFrameConstructor::ConstructFrameByTag(nsIPresShell* aPresShell, if (!aState.mPseudoFrames.IsEmpty()) { // process pending pseudo frames ProcessPseudoFrames(aPresContext, aState.mPseudoFrames, aFrameItems); } + isReplaced = PR_TRUE; rv = NS_NewObjectFrame(aPresShell, &newFrame); } else if (nsHTMLAtoms::fieldset == aTag) {