mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-09 00:11:44 +00:00
Ask line if we are breakable instead of using our own logic
This commit is contained in:
parent
2dda57ddc1
commit
75735878ad
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user