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

Issue 2438683006: Fix max preferred width for LayoutText when break-all (Closed)

Created:
4 years, 2 months ago by kojii
Modified:
4 years, 2 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 max preferred width for LayoutText when break-all This patch fixes max preferred width for LayoutText when break-all preferred width ("word-break: break-all" or "word-break: break-word") is used. The problem only appears when the sum of character widths is not equal to the word width. However, when the sum is larger (e.g., kerning,) the difference is hardly noticeable. Also an optimization in LayoutText::width() hides the problem when !preserveNewline(), so it is visible only when "white-space: pre-wrap" or "white-space: pre-line". BUG=655590 Committed: https://crrev.com/715e724f5eb62b3517f093cadf5716e0fb3040ea Cr-Commit-Position: refs/heads/master@{#426946}

Patch Set 1 #

Patch Set 2 : Rebaseline #

Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -24 lines) Patch
M third_party/WebKit/LayoutTests/fast/css3-text/css3-word-break/word-break-all-rtl.html View 1 chunk +15 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/css3-text/css3-word-break/word-break-all-rtl-expected.txt View 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/text/word-break-soft-hyphen-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/text/word-break-soft-hyphen-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/text/word-break-run-rounding-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.10/fast/text/word-break-soft-hyphen-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/text/word-break-run-rounding-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac-mac10.9/fast/text/word-break-soft-hyphen-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/text/word-break-run-rounding-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/text/word-break-run-rounding-expected.txt View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/text/word-break-soft-hyphen-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/mac/fast/text/word-break-soft-hyphen-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/text/word-break-soft-hyphen-expected.png View 1 Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/win/fast/text/word-break-soft-hyphen-expected.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutText.cpp View 1 4 chunks +38 lines, -7 lines 0 comments Download

Messages

Total messages: 26 (18 generated)
kojii
PTAL.
4 years, 2 months ago (2016-10-21 17:24:26 UTC) #13
eae
This is great, thank you!
4 years, 2 months ago (2016-10-21 17:31:17 UTC) #14
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/2438683006/40001
4 years, 2 months ago (2016-10-21 22:40:57 UTC) #18
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years, 2 months ago (2016-10-21 22:40:59 UTC) #20
eae
I forgot to say the magic word, my bad LGTM
4 years, 2 months ago (2016-10-21 23:00:04 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/2438683006/40001
4 years, 2 months ago (2016-10-21 23:01:13 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:40001)
4 years, 2 months ago (2016-10-22 01:36:07 UTC) #24
commit-bot: I haz the power
4 years, 2 months ago (2016-10-22 01:38:31 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/715e724f5eb62b3517f093cadf5716e0fb3040ea
Cr-Commit-Position: refs/heads/master@{#426946}

Powered by Google App Engine
This is Rietveld 408576698