Rendering alt context in object tag

This commit is contained in:
av@netscape.com
1999-03-10 20:43:07 +00:00
parent 40b48cd2f4
commit f1fe08e869
4 changed files with 16 additions and 18 deletions

View File

@@ -1931,14 +1931,6 @@ nsCSSFrameConstructor::ConstructFrameByTag(nsIPresContext* aPresContext,
else if (nsHTMLAtoms::object == aTag) {
isReplaced = PR_TRUE;
rv = NS_NewObjectFrame(newFrame);
/*
nsIFrame *blockFrame;
NS_NewBlockFrame(blockFrame, 0);
blockFrame->Init(*aPresContext, aContent, newFrame, aStyleContext, nsnull);
newFrame = blockFrame;
newFrameIsFloaterContainer = PR_TRUE;
processChildren = PR_TRUE;
*/
}
else if (nsHTMLAtoms::form == aTag) {
rv = NS_NewFormFrame(newFrame);

View File

@@ -570,7 +570,6 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
nsISupports *container;
nsIPluginHost *pm;
nsIContentViewerContainer *cv;
nsresult rv;
mInstanceOwner = new nsPluginInstanceOwner();
@@ -754,8 +753,16 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
aMetrics.height = kidDesiredSize.height;
aMetrics.ascent = kidDesiredSize.height;
aMetrics.descent = 0;
aStatus = NS_FRAME_COMPLETE;
return NS_OK;
}
//~~~
nsIPresShell* presShell;
aPresContext.GetShell(&presShell);
presShell->CantRenderReplacedElement(&aPresContext, this);
NS_RELEASE(presShell);
aStatus = NS_FRAME_COMPLETE;
return NS_OK;
}

View File

@@ -570,7 +570,6 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
nsISupports *container;
nsIPluginHost *pm;
nsIContentViewerContainer *cv;
nsresult rv;
mInstanceOwner = new nsPluginInstanceOwner();
@@ -754,8 +753,16 @@ nsObjectFrame::Reflow(nsIPresContext& aPresContext,
aMetrics.height = kidDesiredSize.height;
aMetrics.ascent = kidDesiredSize.height;
aMetrics.descent = 0;
aStatus = NS_FRAME_COMPLETE;
return NS_OK;
}
//~~~
nsIPresShell* presShell;
aPresContext.GetShell(&presShell);
presShell->CantRenderReplacedElement(&aPresContext, this);
NS_RELEASE(presShell);
aStatus = NS_FRAME_COMPLETE;
return NS_OK;
}

View File

@@ -1931,14 +1931,6 @@ nsCSSFrameConstructor::ConstructFrameByTag(nsIPresContext* aPresContext,
else if (nsHTMLAtoms::object == aTag) {
isReplaced = PR_TRUE;
rv = NS_NewObjectFrame(newFrame);
/*
nsIFrame *blockFrame;
NS_NewBlockFrame(blockFrame, 0);
blockFrame->Init(*aPresContext, aContent, newFrame, aStyleContext, nsnull);
newFrame = blockFrame;
newFrameIsFloaterContainer = PR_TRUE;
processChildren = PR_TRUE;
*/
}
else if (nsHTMLAtoms::form == aTag) {
rv = NS_NewFormFrame(newFrame);