mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-30 10:12:59 +00:00
Create continuing line frames
This commit is contained in:
parent
1ada64d1cd
commit
211ca77ef3
@ -324,7 +324,7 @@ nsCSSFrameConstructor::CreateGeneratedFrameFor(nsIPresContext* aPresContex
|
||||
}
|
||||
|
||||
} else {
|
||||
contentString = '"';
|
||||
contentString = '\"';
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -5127,6 +5127,14 @@ nsCSSFrameConstructor::CreateContinuingFrame(nsIPresContext* aPresContext,
|
||||
styleContext, PR_FALSE);
|
||||
}
|
||||
|
||||
} else if (nsHTMLAtoms::lineFrame == frameType) {
|
||||
rv = NS_NewFirstLineFrame(&newFrame);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
newFrame->Init(*aPresContext, content, aParentFrame, styleContext, aFrame);
|
||||
nsHTMLContainerFrame::CreateViewForFrame(*aPresContext, newFrame,
|
||||
styleContext, PR_FALSE);
|
||||
}
|
||||
|
||||
} else if (nsHTMLAtoms::blockFrame == frameType) {
|
||||
rv = NS_NewBlockFrame(newFrame, 0);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
|
@ -324,7 +324,7 @@ nsCSSFrameConstructor::CreateGeneratedFrameFor(nsIPresContext* aPresContex
|
||||
}
|
||||
|
||||
} else {
|
||||
contentString = '"';
|
||||
contentString = '\"';
|
||||
}
|
||||
}
|
||||
break;
|
||||
@ -5127,6 +5127,14 @@ nsCSSFrameConstructor::CreateContinuingFrame(nsIPresContext* aPresContext,
|
||||
styleContext, PR_FALSE);
|
||||
}
|
||||
|
||||
} else if (nsHTMLAtoms::lineFrame == frameType) {
|
||||
rv = NS_NewFirstLineFrame(&newFrame);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
newFrame->Init(*aPresContext, content, aParentFrame, styleContext, aFrame);
|
||||
nsHTMLContainerFrame::CreateViewForFrame(*aPresContext, newFrame,
|
||||
styleContext, PR_FALSE);
|
||||
}
|
||||
|
||||
} else if (nsHTMLAtoms::blockFrame == frameType) {
|
||||
rv = NS_NewBlockFrame(newFrame, 0);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user