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

Issue 2940153002: [LayoutNG] Implement more text-align values and BiDi base direction (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 more text-align values and BiDi base direction This patch implements more 'text-align' values: 'left', 'center', 'start', and 'end' (and its -webkit- versions.) 'text-align: justify' is to be worked out. Also supports the base direction, a.k.a. paragraph direction, as defined in UAX#9[1] for 'start' and 'end' to work. This support includes the heuristic resolution by 'unicode-bidi: plaintext'[2]. The heuristics for forced line breaks is not implemented yet. The failure of block-plaintext-004.html is caused by this. [1] http://unicode.org/reports/tr9/ [2] https://drafts.csswg.org/css-writing-modes-3/#valdef-unicode-bidi-plaintext BUG=636993 Review-Url: https://codereview.chromium.org/2940153002 Cr-Commit-Position: refs/heads/master@{#481080} Committed: https://chromium.googlesource.com/chromium/src/+/3cfd4f26430b0625455aa5abf90b2ed4ec129070

Patch Set 1 #

Patch Set 2 : support plain-text #

Patch Set 3 : Cleanup, minor fix, and TestExpectations #

Patch Set 4 : Rebase #

Total comments: 2

Patch Set 5 : eae review #

Total comments: 3

Patch Set 6 : eae review #

Messages

Total messages: 41 (33 generated)
kojii
PTAL.
3 years, 6 months ago (2017-06-16 14:27:38 UTC) #7
eae
https://codereview.chromium.org/2940153002/diff/80001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc (right): https://codereview.chromium.org/2940153002/diff/80001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc#newcode347 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc:347: : (available_width - inline_size) / 2; Could you explain ...
3 years, 6 months ago (2017-06-19 15:36:49 UTC) #19
kojii
https://codereview.chromium.org/2940153002/diff/80001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc (right): https://codereview.chromium.org/2940153002/diff/80001/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc#newcode347 third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc:347: : (available_width - inline_size) / 2; On 2017/06/19 at ...
3 years, 6 months ago (2017-06-20 03:52:20 UTC) #20
kojii
done, PTAL. (I shouldn't have required reviewers to have the same pain as I had, ...
3 years, 6 months ago (2017-06-20 04:05:59 UTC) #23
eae
LGTM https://codereview.chromium.org/2940153002/diff/100001/third_party/WebKit/Source/core/layout/ng/inline/ng_bidi_paragraph.h File third_party/WebKit/Source/core/layout/ng/inline/ng_bidi_paragraph.h (right): https://codereview.chromium.org/2940153002/diff/100001/third_party/WebKit/Source/core/layout/ng/inline/ng_bidi_paragraph.h#newcode40 third_party/WebKit/Source/core/layout/ng/inline/ng_bidi_paragraph.h:40: bool IsAllLtr() const { return ubidi_getDirection(ubidi_) == UBIDI_LTR; ...
3 years, 6 months ago (2017-06-20 17:54:41 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/2940153002/160001
3 years, 6 months ago (2017-06-21 01:51:08 UTC) #37
kojii
All done, thank you!
3 years, 6 months ago (2017-06-21 01:51:24 UTC) #38
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 01:56:02 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/3cfd4f26430b0625455aa5abf90b...

Powered by Google App Engine
This is Rietveld 408576698