From 1da1bfb240ba22832a57ede5b31122c53af9b236 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 --- layout/base/nsCSSFrameConstructor.cpp | 1 + layout/html/style/src/nsCSSFrameConstructor.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 788e03c8f1e3..f9aaf8d9f162 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/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/layout/html/style/src/nsCSSFrameConstructor.cpp b/layout/html/style/src/nsCSSFrameConstructor.cpp index 788e03c8f1e3..f9aaf8d9f162 100644 --- a/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/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) {