DescriptionRefactor and comment BreakingContext::handleText() - Part 2
Continue the refactoring from https://codereview.chromium.org/1504083002
by moving most of the detail in this function to helper functions. This
makes the behaviour of the function more explicit - namely a loop that
skips over non-whitespace and/or collapsible whitespace but returns early
if it encounters a soft or hard line-breaking opportunity.
BUG=567080
Committed: https://crrev.com/0b36cf70d82e790bf6e1fe62a35b3705f702a2ed
Cr-Commit-Position: refs/heads/master@{#367052}
Patch Set 1 #Patch Set 2 : Updated #Patch Set 3 : Updated #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 12 (5 generated)
|