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

Issue 2167093002: Soft hyphens with long suffix may add unnecessary hyphens (Closed)

Created:
4 years, 5 months ago by kojii
Modified:
4 years, 5 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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Soft hyphens with long suffix may add unnecessary hyphens This patch fixes unnecessary hyphens appear when soft hyphens are used and its suffix is too long to fit. In that case, m_lineBreak is still pointing to the last break opportunity, which is the beginning of the line, and the character before is on the previous line. Also, different code doing the same logic for when the word with soft hyphen is at the end of a text node and is not are unified. BUG=627715 Committed: https://crrev.com/33af59cf0bf37f84d6e6423442fc90ffa14176cd Cr-Commit-Position: refs/heads/master@{#407025}

Patch Set 1 #

Patch Set 2 : fix #

Patch Set 3 : editing/selection/paint-hyphen.html had wrong expected #

Patch Set 4 : Stabilize test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -5 lines) Patch
M third_party/WebKit/LayoutTests/editing/selection/paint-hyphen-expected.html View 1 2 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/soft-hyphen-overflow.html View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/soft-hyphen-overflow-expected.html View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/BreakingContextInlineHeaders.h View 1 4 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (17 generated)
kojii
PTAL.
4 years, 5 months ago (2016-07-21 21:56:46 UTC) #16
eae
Fixing a bug and simplifying the code? I like it! LGTM
4 years, 5 months ago (2016-07-22 00:41:01 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/2167093002/60001
4 years, 5 months ago (2016-07-22 00:44:36 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-22 03:29:54 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 03:31:38 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/33af59cf0bf37f84d6e6423442fc90ffa14176cd
Cr-Commit-Position: refs/heads/master@{#407025}

Powered by Google App Engine
This is Rietveld 408576698