DescriptionSoft hyphens with long suffix may add unnecessary hyphens
This patch fixes unnecessary hyphens appear when soft hyphens are used
and its suffix is too long to fit.
In that case, m_lineBreak is still pointing to the last break
opportunity, which is the beginning of the line, and the character
before is on the previous line.
Also, different code doing the same logic for when the word with soft
hyphen is at the end of a text node and is not are unified.
BUG=627715
Committed: https://crrev.com/33af59cf0bf37f84d6e6423442fc90ffa14176cd
Cr-Commit-Position: refs/heads/master@{#407025}
Patch Set 1 #Patch Set 2 : fix #Patch Set 3 : editing/selection/paint-hyphen.html had wrong expected #Patch Set 4 : Stabilize test #
Messages
Total messages: 22 (17 generated)
|