Chromium Code Reviews
DescriptionFix text-align: center/right when line wraps at atomic inline and spaces
LayoutBlockFlow::updateLogicalWidthForAlignment() requires
trailingSpaceRun to compute center/right alignment when line wraps at
atomic inline and spaces, but InlineBidiResolver computes
trailingSpaceRun only when UAX#9 L1 is needed. This patch fixes to
compute trailingSpaceRun also when text-align needs it.
The used value of text-align is saved in LineInfo to use later since it
is now computed earlier, and computing it is more than reading from
ComputedStyle.
Also turns soft-hyphen-4.html to a ref test.
BUG=660178
Review-Url: https://codereview.chromium.org/2786753002
Cr-Commit-Position: refs/heads/master@{#461018}
Committed: https://chromium.googlesource.com/chromium/src/+/1bdce8bacd54f2f8397939561e42822916c4fcb7
Patch Set 1 : #Patch Set 2 : #Patch Set 3 : #Patch Set 4 : Rebase #Messages
Total messages: 33 (26 generated)
|