Chromium Code Reviews
DescriptionSnap inline box boundaries to layout units during line breaking.
When the line box tree is created, InlineBox boundaries are snapped
to LayoutUnit's, and the paint code uses those boundaries to
calculate offsets. Those snapped coordinates may be slightly
different from the un-snapped coordinates used in the line breaking
code.
This doesn't usually cause noticeable problems, but once place it
can show up is in calculating tab widths. The size of a tab
character is "the distance between the current offset and the next
tab stop." If the value of "the current offset" changes between
line breaking and painting, and the difference happens to straddle a
tab position, then layout and painting will use different values for
the size of the tab character.
BUG=526127
Committed: https://crrev.com/27f50dfe5c9b263b25aec4f7b13fb0f90eba3bf7
Cr-Commit-Position: refs/heads/master@{#351368}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Add comment about currentWidth #
Messages
Total messages: 9 (2 generated)
|
||||||||||||||||||||||||||||