mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
Bug 78055. Remove vestigial content construction code. r=mjudge, sr=attinasi.
This commit is contained in:
parent
6e8f1fef17
commit
d18fab4f90
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user