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

Issue 2560453002: Prioritize hyphenations over break-word/break-all (Closed)

Created:
4 years ago by kojii
Modified:
4 years 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

Prioritize hyphenations over break-word/break-all When these mid-word break properties are used together, this patch tries to hyphenate first. This behavior matches to WebKit, and to Gecko/Edge for break-word. The priority isn't defined in the spec, currently an open issue[1]. But for break-word, 4 browsers are interoperable with this change. Also fixes one of failing cases in fast/text/basic/015.html that is related with additionalWidthFromAncestors when break-word. [1] https://github.com/w3c/csswg-drafts/issues/791 BUG=671341 Committed: https://crrev.com/0922f146b8701a3609d57e0fb11b3eb9d35ceb47 Cr-Commit-Position: refs/heads/master@{#436979}

Patch Set 1 #

Patch Set 2 : Fix #

Total comments: 1

Patch Set 3 : Rebase with a static helper function #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -29 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/hyphens/midword-break-priority.html View 1 chunk +56 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/hyphens/midword-break-priority-expected.html View 1 chunk +40 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h View 1 2 6 chunks +28 lines, -29 lines 0 comments Download

Messages

Total messages: 28 (22 generated)
kojii
PTAL. This one is rather rare and I'm less confident on the fix that I ...
4 years ago (2016-12-07 02:12:11 UTC) #11
eae
LGTM, agree about not merging. Thank you for looking into this so promptly as always! ...
4 years ago (2016-12-07 07:16:20 UTC) #13
kojii
On 2016/12/07 at 07:16:20, eae wrote: > This is pretty hard to read, how about ...
4 years ago (2016-12-07 16:34:27 UTC) #21
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/2560453002/40001
4 years ago (2016-12-07 16:35:17 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-07 16:41:01 UTC) #26
commit-bot: I haz the power
4 years ago (2016-12-07 16:44:44 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0922f146b8701a3609d57e0fb11b3eb9d35ceb47
Cr-Commit-Position: refs/heads/master@{#436979}

Powered by Google App Engine
This is Rietveld 408576698