mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-27 02:43:07 +00:00
Use revised inline reflow status; fixed bug in pre-return status to indicate when continuations are needed after line breaks
This commit is contained in:
parent
f0202fa3dd
commit
cc4cdf6b7e
@ -867,7 +867,7 @@ TextFrame::ReflowNormal(nsCSSLineLayout& aLineLayout,
|
||||
aMetrics.maxElementSize->height = 0;
|
||||
}
|
||||
NS_RELEASE(fm);
|
||||
return NS_INLINE_REFLOW_COMPLETE;
|
||||
return NS_FRAME_COMPLETE;
|
||||
}
|
||||
}
|
||||
|
||||
@ -884,7 +884,7 @@ TextFrame::ReflowNormal(nsCSSLineLayout& aLineLayout,
|
||||
aMetrics.maxElementSize->height = fm->GetHeight();
|
||||
}
|
||||
NS_RELEASE(fm);
|
||||
return (cp == end) ? NS_INLINE_REFLOW_COMPLETE : NS_INLINE_REFLOW_NOT_COMPLETE;
|
||||
return (cp == end) ? NS_FRAME_COMPLETE : NS_FRAME_NOT_COMPLETE;
|
||||
}
|
||||
|
||||
nsInlineReflowStatus
|
||||
@ -894,7 +894,7 @@ TextFrame::ReflowPre(nsCSSLineLayout& aLineLayout,
|
||||
const nsStyleFont& aFont,
|
||||
PRInt32 aStartingOffset)
|
||||
{
|
||||
nsInlineReflowStatus rs = NS_INLINE_REFLOW_COMPLETE;
|
||||
nsInlineReflowStatus rs = NS_FRAME_COMPLETE;
|
||||
|
||||
Text* txt = (Text*) mContent;
|
||||
const PRUnichar* cp = txt->mText + aStartingOffset;
|
||||
@ -914,7 +914,9 @@ TextFrame::ReflowPre(nsCSSLineLayout& aLineLayout,
|
||||
while (cp < end) {
|
||||
PRUnichar ch = *cp++;
|
||||
if (ch == '\n') {
|
||||
rs = NS_INLINE_REFLOW_LINE_BREAK_AFTER;
|
||||
rs = (cp == end)
|
||||
? NS_INLINE_LINE_BREAK_AFTER(NS_FRAME_COMPLETE)
|
||||
: NS_INLINE_LINE_BREAK_AFTER(NS_FRAME_NOT_COMPLETE);
|
||||
break;
|
||||
}
|
||||
if (ch == '\t') {
|
||||
|
Loading…
Reference in New Issue
Block a user