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

Issue 2931563002: [LayoutNG] Implement 'text-align-last' (Closed)

Created:
3 years, 6 months ago by kojii
Modified:
3 years, 6 months ago
Reviewers:
eae
CC:
atotic+reviews_chromium.org, blink-reviews, blink-reviews-layout_chromium.org, cbiesinger, chromium-reviews, dgrogan+ng_chromium.org, eae+blinkwatch, glebl+reviews_chromium.org, jchaffraix+rendering, lchoi+reviews_chromium.org, leviw+renderwatch, ojan+watch_chromium.org, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[LayoutNG] Implement 'text-align-last' This patch takes 'text-align-last' into account to determine the used value of 'text-align', though not all used values of text-align is not supported yet. In doing so, this patch adds NGLineInfo, similar to LineInfo, that communicates the properties of a line box to NGInlineLayoutAlgorithm::CreateLine(). IsFirstLine() for '::first-line' pseudo elements is moved to this class. Some more fields will be added in future, such as trialing spaces. LayoutBlockFlow::TextAlignmentForLine() is moved to ComputedStyle to share the code with LayoutObject, though the function still remains since LayoutRuby overrides the function. Tests in fast/css3-text/css3-text-align-last do not pass yet since single test file contains all values. BUG=636993 Review-Url: https://codereview.chromium.org/2931563002 Cr-Commit-Position: refs/heads/master@{#478860} Committed: https://chromium.googlesource.com/chromium/src/+/b8eb36b221b05003be9f36ffae3d2e3a5a77651e

Patch Set 1 #

Patch Set 2 : Inherit from Vector #

Patch Set 3 : Inherit from Vector doesn't work #

Patch Set 4 : Add NGLineInfo #

Patch Set 5 : Cleanup #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -115 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 1 2 3 4 5 1 chunk +1 line, -25 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h View 1 2 3 4 2 chunks +40 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.cc View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.h View 1 2 3 3 chunks +6 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc View 1 2 3 12 chunks +20 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node.cc View 1 2 3 4 5 1 chunk +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc View 1 2 3 4 5 9 chunks +29 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker_test.cc View 1 2 3 4 5 1 chunk +3 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 1 chunk +30 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
kojii
PTAL.
3 years, 6 months ago (2017-06-08 03:48:39 UTC) #8
eae
This is great, thank you! LGTM
3 years, 6 months ago (2017-06-12 16:52:07 UTC) #12
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/2931563002/120001
3 years, 6 months ago (2017-06-12 19:49:01 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device-xcode-clang/builds/115318) win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, ...
3 years, 6 months ago (2017-06-12 20:00:02 UTC) #16
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/2931563002/140001
3 years, 6 months ago (2017-06-12 20:28:18 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_layout_tests_layout_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 6 months ago (2017-06-12 22:29:37 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/2931563002/140001
3 years, 6 months ago (2017-06-13 01:45:27 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:140001) as https://chromium.googlesource.com/chromium/src/+/b8eb36b221b05003be9f36ffae3d2e3a5a77651e
3 years, 6 months ago (2017-06-13 01:51:25 UTC) #27
atotic
On 2017/06/13 at 01:51:25, commit-bot wrote: > Committed patchset #6 (id:140001) as https://chromium.googlesource.com/chromium/src/+/b8eb36b221b05003be9f36ffae3d2e3a5a77651e A remainder: ...
3 years, 6 months ago (2017-06-13 05:58:08 UTC) #28
kojii
3 years, 6 months ago (2017-06-13 06:06:37 UTC) #29
Message was sent while issue was closed.
On 2017/06/13 at 05:58:08, atotic wrote:
> A remainder: we should update TestExpectations.

Yeah, I neglected and delegated to my maintenance work as ng-bot is slow, but
the maintenance is in queue...I'm asking if we can add another bot. Thanks for
the reminder.

Powered by Google App Engine
This is Rietveld 408576698