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

Issue 2786753002: Fix text-align: center/right when line wraps at atomic inline and spaces (Closed)

Created:
3 years, 8 months ago by kojii
Modified:
3 years, 8 months ago
Reviewers:
eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, kinuko+watch, leviw+renderwatch, leviw+bidiwatch_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix text-align: center/right when line wraps at atomic inline and spaces LayoutBlockFlow::updateLogicalWidthForAlignment() requires trailingSpaceRun to compute center/right alignment when line wraps at atomic inline and spaces, but InlineBidiResolver computes trailingSpaceRun only when UAX#9 L1 is needed. This patch fixes to compute trailingSpaceRun also when text-align needs it. The used value of text-align is saved in LineInfo to use later since it is now computed earlier, and computing it is more than reading from ComputedStyle. Also turns soft-hyphen-4.html to a ref test. BUG=660178 Review-Url: https://codereview.chromium.org/2786753002 Cr-Commit-Position: refs/heads/master@{#461018} Committed: https://chromium.googlesource.com/chromium/src/+/1bdce8bacd54f2f8397939561e42822916c4fcb7

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -39 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css/text-align-img.html View 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/css/text-align-img-expected.html View 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/text/soft-hyphen-4-expected.html View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
D third_party/WebKit/LayoutTests/fast/text/soft-hyphen-4-expected.txt View 1 2 1 chunk +0 lines, -17 lines 0 comments Download
D third_party/WebKit/LayoutTests/platform/linux/fast/text/soft-hyphen-4-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/mac/fast/text/soft-hyphen-4-expected.png View 1 2 Binary file 0 comments Download
D third_party/WebKit/LayoutTests/platform/win/fast/text/soft-hyphen-4-expected.png View 1 2 3 Binary file 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 1 6 chunks +32 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/InlineIterator.h View 1 2 3 1 chunk +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineInfo.h View 3 chunks +7 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/text/BidiResolver.h View 7 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 33 (26 generated)
kojii
PTAL.
3 years, 8 months ago (2017-03-30 01:32:12 UTC) #18
eae
This is so much cleaner than my attempt to fix that bug, thank you! LGTM
3 years, 8 months ago (2017-03-30 19:04:46 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/2786753002/60001
3 years, 8 months ago (2017-03-30 19:05:51 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/418599)
3 years, 8 months ago (2017-03-30 21:14:07 UTC) #25
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/2786753002/60001
3 years, 8 months ago (2017-03-31 00:52:26 UTC) #27
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/2786753002/80001
3 years, 8 months ago (2017-03-31 01:56:05 UTC) #30
commit-bot: I haz the power
3 years, 8 months ago (2017-03-31 03:53:47 UTC) #33
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/1bdce8bacd54f2f8397939561e42...

Powered by Google App Engine
This is Rietveld 408576698