зеркало из https://github.com/mozilla/pjs.git
Allow PushLines to push the first line. b=185357 r+sr=roc
This commit is contained in:
Родитель
df33b45fc1
Коммит
5eae4fdb0e
|
@ -4194,7 +4194,9 @@ nsBlockFrame::PushLines(nsBlockReflowState& aState,
|
|||
nsLineList::iterator aLineBefore)
|
||||
{
|
||||
nsLineList::iterator overBegin(aLineBefore.next());
|
||||
NS_ASSERTION(overBegin != begin_lines(), "bad push");
|
||||
|
||||
// PushTruncatedPlaceholderLine sometimes pushes the first line. Ugh.
|
||||
PRBool firstLine = overBegin == begin_lines();
|
||||
|
||||
if (overBegin != end_lines()) {
|
||||
// XXXldb use presshell arena!
|
||||
|
@ -4220,7 +4222,8 @@ nsBlockFrame::PushLines(nsBlockReflowState& aState,
|
|||
}
|
||||
|
||||
// Break frame sibling list
|
||||
aLineBefore->LastChild()->SetNextSibling(nsnull);
|
||||
if (!firstLine)
|
||||
aLineBefore->LastChild()->SetNextSibling(nsnull);
|
||||
|
||||
#ifdef DEBUG
|
||||
VerifyOverflowSituation(aState.mPresContext);
|
||||
|
|
|
@ -4194,7 +4194,9 @@ nsBlockFrame::PushLines(nsBlockReflowState& aState,
|
|||
nsLineList::iterator aLineBefore)
|
||||
{
|
||||
nsLineList::iterator overBegin(aLineBefore.next());
|
||||
NS_ASSERTION(overBegin != begin_lines(), "bad push");
|
||||
|
||||
// PushTruncatedPlaceholderLine sometimes pushes the first line. Ugh.
|
||||
PRBool firstLine = overBegin == begin_lines();
|
||||
|
||||
if (overBegin != end_lines()) {
|
||||
// XXXldb use presshell arena!
|
||||
|
@ -4220,7 +4222,8 @@ nsBlockFrame::PushLines(nsBlockReflowState& aState,
|
|||
}
|
||||
|
||||
// Break frame sibling list
|
||||
aLineBefore->LastChild()->SetNextSibling(nsnull);
|
||||
if (!firstLine)
|
||||
aLineBefore->LastChild()->SetNextSibling(nsnull);
|
||||
|
||||
#ifdef DEBUG
|
||||
VerifyOverflowSituation(aState.mPresContext);
|
||||
|
|
Загрузка…
Ссылка в новой задаче