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

Issue 2725933002: Fix LayoutUnit snapping of widths in line breaker (Closed)

Created:
3 years, 9 months ago by kojii
Modified:
3 years, 9 months ago
Reviewers:
eae
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
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix LayoutUnit snapping of widths in line breaker This patch fixes how the line breaker snaps widths at node boundaries. Before this patch, only uncommitted widths are snapped. This does not snap widths correctly when: * All widths are committed. * There are committed and uncommitted widths. LayoutBlockFlow::computeInlinePreferredLogicalWidths() snaps the width of each node. This patch changes the line breaker to do the same snapping. BUG=693941 Review-Url: https://codereview.chromium.org/2725933002 Cr-Commit-Position: refs/heads/master@{#454211} Committed: https://chromium.googlesource.com/chromium/src/+/460361ba8ca8615d1794caa3e6dc517634798b4f

Patch Set 1 #

Patch Set 2 : NeedsRebaseline #

Patch Set 3 : Add test cases for m_uncommittedWidth and !m_uncommittedWidth #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -4 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/fit-content-with-element-boundaries.html View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineWidth.h View 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (22 generated)
kojii
PTAL.
3 years, 9 months ago (2017-03-01 21:35:40 UTC) #7
eae
I'm a little concerned that this might produce widths wider than computePreferredLogicalWidths but we have ...
3 years, 9 months ago (2017-03-01 21:54:31 UTC) #11
kojii
Thank you as always. On 2017/03/01 at 21:54:31, eae wrote: > I'm a little concerned ...
3 years, 9 months ago (2017-03-02 03:04:00 UTC) #14
kojii
Added test cases for !m_uncommittedWidth where it may be wider then before the patch.
3 years, 9 months ago (2017-03-02 03:55:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2725933002/80001
3 years, 9 months ago (2017-03-02 08:23:59 UTC) #25
commit-bot: I haz the power
3 years, 9 months ago (2017-03-02 08:28:45 UTC) #28
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/460361ba8ca8615d1794caa3e6dc...

Powered by Google App Engine
This is Rietveld 408576698