Fixing bug 96804 -- isReplaced is not set for object frames created with <embed> tag, patch by timkoogleblowsgoats@yahoo.com, r=peterl, sr=attinasi

This commit is contained in:
av%netscape.com 2001-09-06 01:26:14 +00:00
Родитель 09b3ca9383
Коммит 1da1bfb240
2 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -4875,6 +4875,7 @@ nsCSSFrameConstructor::ConstructFrameByTag(nsIPresShell* aPresShell,
if (!aState.mPseudoFrames.IsEmpty()) { // process pending pseudo frames if (!aState.mPseudoFrames.IsEmpty()) { // process pending pseudo frames
ProcessPseudoFrames(aPresContext, aState.mPseudoFrames, aFrameItems); ProcessPseudoFrames(aPresContext, aState.mPseudoFrames, aFrameItems);
} }
isReplaced = PR_TRUE;
rv = NS_NewObjectFrame(aPresShell, &newFrame); rv = NS_NewObjectFrame(aPresShell, &newFrame);
} }
else if (nsHTMLAtoms::fieldset == aTag) { else if (nsHTMLAtoms::fieldset == aTag) {

Просмотреть файл

@ -4875,6 +4875,7 @@ nsCSSFrameConstructor::ConstructFrameByTag(nsIPresShell* aPresShell,
if (!aState.mPseudoFrames.IsEmpty()) { // process pending pseudo frames if (!aState.mPseudoFrames.IsEmpty()) { // process pending pseudo frames
ProcessPseudoFrames(aPresContext, aState.mPseudoFrames, aFrameItems); ProcessPseudoFrames(aPresContext, aState.mPseudoFrames, aFrameItems);
} }
isReplaced = PR_TRUE;
rv = NS_NewObjectFrame(aPresShell, &newFrame); rv = NS_NewObjectFrame(aPresShell, &newFrame);
} }
else if (nsHTMLAtoms::fieldset == aTag) { else if (nsHTMLAtoms::fieldset == aTag) {