diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index 0edca2aa8e2c..7f3996ed5ea7 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/layout/generic/nsTextFrame.cpp @@ -2215,7 +2215,7 @@ TextFrame::Reflow(nsIPresContext& aPresContext, PRInt32 prevColumn = column; mColumn = column; - PRBool breakable = !lineLayout.LineIsEmpty(); + PRBool breakable = lineLayout.LineIsBreakable(); for (;;) { // Get next word/whitespace from the text PRBool isWhitespace; diff --git a/layout/html/base/src/nsTextFrame.cpp b/layout/html/base/src/nsTextFrame.cpp index 0edca2aa8e2c..7f3996ed5ea7 100644 --- a/layout/html/base/src/nsTextFrame.cpp +++ b/layout/html/base/src/nsTextFrame.cpp @@ -2215,7 +2215,7 @@ TextFrame::Reflow(nsIPresContext& aPresContext, PRInt32 prevColumn = column; mColumn = column; - PRBool breakable = !lineLayout.LineIsEmpty(); + PRBool breakable = lineLayout.LineIsBreakable(); for (;;) { // Get next word/whitespace from the text PRBool isWhitespace;