Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Issue 1375803002: Snap inline box boundaries to layout units during line breaking. (Closed)

Created:
5 years, 2 months ago by szager1
Modified:
5 years, 2 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Snap 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineWidth.h View 1 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
szager1
5 years, 2 months ago (2015-09-29 04:04:59 UTC) #2
eae
https://codereview.chromium.org/1375803002/diff/1/third_party/WebKit/Source/core/layout/line/LineWidth.h File third_party/WebKit/Source/core/layout/line/LineWidth.h (right): https://codereview.chromium.org/1375803002/diff/1/third_party/WebKit/Source/core/layout/line/LineWidth.h#newcode71 third_party/WebKit/Source/core/layout/line/LineWidth.h:71: void snapUncommittedWidth() { m_uncommittedWidth = LayoutUnit(m_uncommittedWidth).toFloat(); } Is the ...
5 years, 2 months ago (2015-09-29 14:50:00 UTC) #3
szager1
https://codereview.chromium.org/1375803002/diff/1/third_party/WebKit/Source/core/layout/line/LineWidth.h File third_party/WebKit/Source/core/layout/line/LineWidth.h (right): https://codereview.chromium.org/1375803002/diff/1/third_party/WebKit/Source/core/layout/line/LineWidth.h#newcode71 third_party/WebKit/Source/core/layout/line/LineWidth.h:71: void snapUncommittedWidth() { m_uncommittedWidth = LayoutUnit(m_uncommittedWidth).toFloat(); } On 2015/09/29 ...
5 years, 2 months ago (2015-09-29 16:48:32 UTC) #4
eae
LGTM
5 years, 2 months ago (2015-09-29 17:15:33 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1375803002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1375803002/20001
5 years, 2 months ago (2015-09-29 17:19:14 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-09-29 19:05:49 UTC) #8
commit-bot: I haz the power
5 years, 2 months ago (2015-09-29 19:07:25 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/27f50dfe5c9b263b25aec4f7b13fb0f90eba3bf7
Cr-Commit-Position: refs/heads/master@{#351368}

Powered by Google App Engine
This is Rietveld 408576698