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

Issue 1919693002: Change LineWidth::snapUncommittedWidth to ceil (Closed)

Created:
4 years, 8 months ago by eae
Modified:
4 years, 8 months ago
Reviewers:
kojii, szager1
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change LineWidth::snapUncommittedWidth to ceil Change the snapUncommittedWidth method on the LineWidth class to ceil to the nearest LayoutUnit rather than to floor. It's only called from a one place, BreakingContext::increment, where the intent is to increment, not decrement, the uncommitted width. This ensures that the snapped width is wide enough to contain the text. This fixes a bug where tabulation characters were omitted incorrectly in text layout due to the width being floored during the width commit step. R=kojii@chromium.org BUG=605820 Committed: https://crrev.com/957ee1cf9558f59e65c943a85fab2ec7ce94ebe2 Cr-Commit-Position: refs/heads/master@{#389413}

Patch Set 1 #

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

Messages

Total messages: 12 (6 generated)
eae
4 years, 8 months ago (2016-04-25 02:23:22 UTC) #3
kojii
lgtm
4 years, 8 months ago (2016-04-25 04:18:58 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1919693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1919693002/1
4 years, 8 months ago (2016-04-25 04:19:48 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 8 months ago (2016-04-25 04:59:09 UTC) #8
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/957ee1cf9558f59e65c943a85fab2ec7ce94ebe2 Cr-Commit-Position: refs/heads/master@{#389413}
4 years, 8 months ago (2016-04-25 05:00:20 UTC) #10
szager1
4 years, 8 months ago (2016-04-25 19:06:59 UTC) #12
Message was sent while issue was closed.
Thanks for tracking this down!

Powered by Google App Engine
This is Rietveld 408576698