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

Issue 2870413005: [LayoutNG] Add "Control" NGInlineItemType for newlines and tabs (Closed)

Created:
3 years, 7 months ago by kojii
Modified:
3 years, 7 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, 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] Add "Control" NGInlineItemType for newlines and tabs This patch changes preserved newlines and tabs to create separate NGInlineItem with kControl type. These control characters need separate code path to measure and to break lines. Having separate NGInlineItem helps doing them easier. Also supports LayoutBR, which does not set to preserve newlines in style. In doing so, the complexity of conditional branches in a loop was increased that preserving spaces and preserving newlines got their own loops. BUG=636993 Review-Url: https://codereview.chromium.org/2870413005 Cr-Commit-Position: refs/heads/master@{#471333} Committed: https://chromium.googlesource.com/chromium/src/+/43d6ef93d6c8b62d4b2f09b906268aa7440ca8c1

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -48 lines) Patch
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.h View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder.cc View 1 2 3 chunks +111 lines, -48 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_items_builder_test.cc View 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_node_test.cc View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (13 generated)
kojii
PTAL. WDYT? I preferred separate loops than many if's in a loop, but wonder it ...
3 years, 7 months ago (2017-05-12 11:01:53 UTC) #9
eae
OK, LGTM
3 years, 7 months ago (2017-05-12 16:34:50 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/2870413005/40001
3 years, 7 months ago (2017-05-12 16:36:10 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-12 16:42:10 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/43d6ef93d6c8b62d4b2f09b90626...

Powered by Google App Engine
This is Rietveld 408576698