Bug 78055. Remove vestigial content construction code. r=mjudge, sr=attinasi.

This commit is contained in:
waterson%netscape.com 2001-05-02 22:26:33 +00:00
parent 6e8f1fef17
commit d18fab4f90
2 changed files with 2 additions and 22 deletions

View File

@ -1539,20 +1539,9 @@ nsCSSFrameConstructor::CreateGeneratedContentFrame(nsIPresShell* aPresShe
nsIFrame* containerFrame;
nsFrameItems childFrames;
nsCOMPtr<nsIDOMElement>containerElement;
nsCOMPtr<nsIContent> containerContent;
nsCOMPtr<nsIDocument> document;
aContent->GetDocument(*getter_AddRefs(document));
nsCOMPtr<nsIDOMDocument> domdoc(do_QueryInterface(document));
nsresult result;
result = domdoc->CreateElement(NS_ConvertASCIItoUCS2("SPAN"),getter_AddRefs(containerElement));//is the literal the correct way?
if (NS_SUCCEEDED(result) && containerElement)
{
containerContent = do_QueryInterface(containerElement);
}//do NOT use YET set this up for later checkin. this will be the content of the new frame.
if (NS_STYLE_DISPLAY_BLOCK == displayValue) {
NS_NewBlockFrame(aPresShell, &containerFrame);
} else {
@ -1581,6 +1570,7 @@ nsCSSFrameConstructor::CreateGeneratedContentFrame(nsIPresShell* aPresShe
nsIFrame* frame;
// Create a frame
nsresult result;
result = CreateGeneratedFrameFor(aPresContext, document, containerFrame,
aContent, textStyleContext,
styleContent, contentIndex, &frame);

View File

@ -1539,20 +1539,9 @@ nsCSSFrameConstructor::CreateGeneratedContentFrame(nsIPresShell* aPresShe
nsIFrame* containerFrame;
nsFrameItems childFrames;
nsCOMPtr<nsIDOMElement>containerElement;
nsCOMPtr<nsIContent> containerContent;
nsCOMPtr<nsIDocument> document;
aContent->GetDocument(*getter_AddRefs(document));
nsCOMPtr<nsIDOMDocument> domdoc(do_QueryInterface(document));
nsresult result;
result = domdoc->CreateElement(NS_ConvertASCIItoUCS2("SPAN"),getter_AddRefs(containerElement));//is the literal the correct way?
if (NS_SUCCEEDED(result) && containerElement)
{
containerContent = do_QueryInterface(containerElement);
}//do NOT use YET set this up for later checkin. this will be the content of the new frame.
if (NS_STYLE_DISPLAY_BLOCK == displayValue) {
NS_NewBlockFrame(aPresShell, &containerFrame);
} else {
@ -1581,6 +1570,7 @@ nsCSSFrameConstructor::CreateGeneratedContentFrame(nsIPresShell* aPresShe
nsIFrame* frame;
// Create a frame
nsresult result;
result = CreateGeneratedFrameFor(aPresContext, document, containerFrame,
aContent, textStyleContext,
styleContent, contentIndex, &frame);