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

Issue 2931363002: [LayoutNG] More precise checks for empty inline and add test (Closed)

Created:
3 years, 6 months ago by kojii
Modified:
3 years, 6 months ago
Reviewers:
ikilpatrick
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[LayoutNG] More precise checks for empty inline and add test Whether an empty inline should create a box or not affects several things, such as: * If nothing else on the line, it affects whether to create a line box or not, which has a height of strut. * A line box prevents margins before and after to collapse. While the condition is not clearly defined, all 4 browsers pass the tests in this CL. BUG=636993 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_layout_ng Review-Url: https://codereview.chromium.org/2931363002 Cr-Commit-Position: refs/heads/master@{#481114} Committed: https://chromium.googlesource.com/chromium/src/+/9c70225b2a1ab3982b2c6345cc46f2d96bad025b

Patch Set 1 #

Patch Set 2 : WIP #

Patch Set 3 : WIP #

Patch Set 4 : WIP #

Patch Set 5 : WIP #

Patch Set 6 : Cleanup #

Patch Set 7 : Reverted the loop #

Patch Set 8 : Cleanup #

Patch Set 9 : Rebase #

Patch Set 10 : Abstracted available_width_ #

Total comments: 4

Patch Set 11 : ikilpatrick review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+254 lines, -94 lines) Patch
A third_party/WebKit/LayoutTests/fast/inline/empty-inline-create-linebox.html View 1 2 3 4 5 1 chunk +114 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_box_state.h View 1 2 3 4 5 3 chunks +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_box_state.cc View 1 2 3 4 5 6 7 4 chunks +28 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_item_result.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +17 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +10 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc View 1 2 3 4 5 6 7 8 9 10 15 chunks +76 lines, -59 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (28 generated)
kojii
Ian, does this match to what you need? Need more code to really create/disregard linebox, ...
3 years, 6 months ago (2017-06-12 10:25:32 UTC) #4
kojii
On second thoughts, this doesn't solve if floats come earlier than SetShouldCreateLineBox(). Huh...
3 years, 6 months ago (2017-06-12 10:32:20 UTC) #6
ikilpatrick
On 2017/06/12 10:32:20, kojii wrote: > On second thoughts, this doesn't solve if floats come ...
3 years, 6 months ago (2017-06-12 15:56:31 UTC) #7
kojii
On 2017/06/12 at 15:56:31, ikilpatrick wrote: > On 2017/06/12 10:32:20, kojii wrote: > > On ...
3 years, 6 months ago (2017-06-12 16:09:40 UTC) #8
kojii
PTAL, this is ready for review now. All 4 browsers passed the included tests. Moved ...
3 years, 6 months ago (2017-06-16 04:44:11 UTC) #12
ikilpatrick
lgtm https://codereview.chromium.org/2931363002/diff/200001/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc File third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc (left): https://codereview.chromium.org/2931363002/diff/200001/third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc#oldcode103 third_party/WebKit/Source/core/layout/ng/inline/ng_line_breaker.cc:103: WTF::Optional<LayoutUnit> available_width; I should explain why I did ...
3 years, 6 months ago (2017-06-20 23:48:16 UTC) #30
kojii
Understood the point, thank you for taking time to explain, this is very helpful! I ...
3 years, 6 months ago (2017-06-21 03:22:37 UTC) #31
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/2931363002/220001
3 years, 6 months ago (2017-06-21 03:26:10 UTC) #34
commit-bot: I haz the power
3 years, 6 months ago (2017-06-21 05:12:18 UTC) #37
Message was sent while issue was closed.
Committed patchset #11 (id:220001) as
https://chromium.googlesource.com/chromium/src/+/9c70225b2a1ab3982b2c6345cc46...

Powered by Google App Engine
This is Rietveld 408576698