Current 4 of 6 usages of GetLastOptionalBreakPosition ignore the offset and just check whether a break exists or what the priority of last break position is. However, calling GetLastOptionalBreakPosition requires defining several additional temporary variables. We should simplify those cases.
Only 3 of 5 actually.
Summary: Add GetLastOptionalBreakPriority to nsLineLayout → Add LastOptionalBreakPriority to nsLineLayout
Created attachment 8575675 [details] [diff] [review] patch
Assignee: nobody → quanxunzhen
Attachment #8575675 - Flags: review?(roc)
Attachment #8575675 - Flags: review?(roc) → review+
Status: NEW → RESOLVED
Last Resolved: 4 years ago
status-firefox39: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in before you can comment on or make changes to this bug.