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

Issue 2943983002: [LayoutNG] Implement CSS 'text-indent' property (Closed)

Created:
3 years, 6 months ago by kojii
Modified:
3 years, 3 months ago
Reviewers:
Nico, 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 CSS 'text-indent' property There are a few minor differences from the current layout engine. 1. Tab position is not affected by 'text-indent' in NG. This matches to Edge/Gecko. 2. When 'unicode-bidi: plaintext', the heuristic base direction is used rather than the specified by the 'direction' property. This matches to Gecko (Edge does not implement plaintext). There are several tests in wpt/css/CSS2/text, but importing them is blocked by a script problem (crbug.com/727923). I'll look into them once import restarted. BUG=636993 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_layout_ng Review-Url: https://codereview.chromium.org/2943983002 Cr-Commit-Position: refs/heads/master@{#481420} Committed: https://chromium.googlesource.com/chromium/src/+/67f72caa837f24bbb1595c26363daf09e0200f14

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Patch Set 5 : WIP #

Patch Set 6 : Cleanup #

Total comments: 2

Messages

Total messages: 24 (18 generated)
kojii
PTAL.
3 years, 6 months ago (2017-06-21 16:05:09 UTC) #14
eae
LGTM
3 years, 6 months ago (2017-06-21 16:29:50 UTC) #15
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/2943983002/120001
3 years, 6 months ago (2017-06-22 02:10:20 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:120001) as https://chromium.googlesource.com/chromium/src/+/67f72caa837f24bbb1595c26363daf09e0200f14
3 years, 6 months ago (2017-06-22 03:06:19 UTC) #21
Nico
https://codereview.chromium.org/2943983002/diff/120001/third_party/WebKit/Source/core/style/ComputedStyle.cpp File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right): https://codereview.chromium.org/2943983002/diff/120001/third_party/WebKit/Source/core/style/ComputedStyle.cpp#newcode1304 third_party/WebKit/Source/core/style/ComputedStyle.cpp:1304: return TextIndentType() == TextIndentType::kNormal ? should_use : !should_use; Is ...
3 years, 3 months ago (2017-09-15 19:33:58 UTC) #23
kojii
3 years, 3 months ago (2017-09-16 05:25:21 UTC) #24
Message was sent while issue was closed.
https://codereview.chromium.org/2943983002/diff/120001/third_party/WebKit/Sou...
File third_party/WebKit/Source/core/style/ComputedStyle.cpp (right):

https://codereview.chromium.org/2943983002/diff/120001/third_party/WebKit/Sou...
third_party/WebKit/Source/core/style/ComputedStyle.cpp:1304: return
TextIndentType() == TextIndentType::kNormal ? should_use : !should_use;
On 2017/09/15 at 19:33:57, Nico wrote:
> Is this meant to call GetTextIndentType()? As-is, this default-constructs an
instance of the TextIndentType() enum (which is always kNormal), so this always
returns should_use.

Thanks, you're right, I'll send a fix.

> Maybe this is missing some test coverage?

We do cover, but I was implementing CSS2 and this is in CSS3, and CSS3 tests are
still failing for other reasons.

Still it was helpful to find this out, thank you!

Powered by Google App Engine
This is Rietveld 408576698