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

Issue 1995103002: Represent lines using LayoutUnit in LineWidth (Closed)

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

Description

Represent lines using LayoutUnit in LineWidth Change LineWidth to represent m_availableWidth, m_left and m_right using LayoutUnits instead of floats. This matches the line box tree code as it uses LayoutUnits for line boxes. Further it solves a line breaking issue for floating elements due to a loss of precision when converting between LayoutUnits and floats, even without a LayoutUnit::epsilon fudge factor. This should allow the remaining use of LayoutUnit::epsilon to be removed as well but given the sensitive nature of this code I'd rather make that change in a separate and subsequent CL. R=szager@chromium.org BUG=609427 TEST=fast/sub-pixel/float-subpixel-wrapping.html Committed: https://crrev.com/60bec7228df8e6114c75586ed3e3a45042b713eb Cr-Commit-Position: refs/heads/master@{#394955}

Patch Set 1 #

Patch Set 2 : w/LayoutTest #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -28 lines) Patch
A third_party/WebKit/LayoutTests/fast/sub-pixel/float-subpixel-wrapping.html View 1 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/sub-pixel/float-subpixel-wrapping-expected.html View 1 1 chunk +28 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineWidth.h View 3 chunks +8 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineWidth.cpp View 9 chunks +21 lines, -23 lines 0 comments Download

Messages

Total messages: 13 (7 generated)
eae
4 years, 7 months ago (2016-05-19 21:04:50 UTC) #5
eae
4 years, 7 months ago (2016-05-19 21:04:50 UTC) #6
szager1
lgtm
4 years, 7 months ago (2016-05-19 21:52:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1995103002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1995103002/20001
4 years, 7 months ago (2016-05-19 21:53:07 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-20 01:39:17 UTC) #11
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 01:41:54 UTC) #13
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/60bec7228df8e6114c75586ed3e3a45042b713eb
Cr-Commit-Position: refs/heads/master@{#394955}

Powered by Google App Engine
This is Rietveld 408576698