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

Issue 2798203002: NGInlineLayoutAlgorithm should take margins of inline floats into account (Closed)

Created:
3 years, 8 months ago by Gleb Lanbin
Modified:
3 years, 8 months ago
Reviewers:
ikilpatrick, kojii
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

NGInlineLayoutAlgorithm should take margins of inline floats into account 1) Moved ComputeMarginsForChild to NGLayoutAlgorithm 2) Changed InlineLayoutAlgorithmTest to call ComputeMarginsForChild and pass them to NGFloatingObject BUG=635619 TEST=NGInlineLayoutAlgorithmTest::PositionFloatsWithMargins Review-Url: https://codereview.chromium.org/2798203002 Cr-Commit-Position: refs/heads/master@{#462644} Committed: https://chromium.googlesource.com/chromium/src/+/d3920ccc81711676a41982bcae3a29b4142c6838

Patch Set 1 #

Total comments: 8

Patch Set 2 : fix comments #

Total comments: 1

Patch Set 3 : use parent's writing mode, direction while calculating margins #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -3 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc View 1 2 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm_test.cc View 1 2 1 chunk +29 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (19 generated)
Gleb Lanbin
3 years, 8 months ago (2017-04-05 23:35:21 UTC) #3
kojii
Thank you, sharing more code between inline and block is great. https://codereview.chromium.org/2798203002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.cc (right): ...
3 years, 8 months ago (2017-04-06 13:44:52 UTC) #10
ikilpatrick
https://codereview.chromium.org/2798203002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc (right): https://codereview.chromium.org/2798203002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc#newcode334 third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc:334: NGBoxStrut margins = ComputeMarginsForChild(*float_space.get(), node); So I think this ...
3 years, 8 months ago (2017-04-06 16:24:32 UTC) #11
Gleb Lanbin
thanks, PTAL. https://codereview.chromium.org/2798203002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc (right): https://codereview.chromium.org/2798203002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc#newcode334 third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc:334: NGBoxStrut margins = ComputeMarginsForChild(*float_space.get(), node); On 2017/04/06 ...
3 years, 8 months ago (2017-04-06 16:35:36 UTC) #12
ikilpatrick
https://codereview.chromium.org/2798203002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc (right): https://codereview.chromium.org/2798203002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc#newcode336 third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc:336: ComputeMargins(*float_space, float_style, float_space->WritingMode(), .nit (can fix later) I'm not ...
3 years, 8 months ago (2017-04-06 17:44:21 UTC) #15
ikilpatrick
lgtm if you want to fix this later...
3 years, 8 months ago (2017-04-06 17:44:33 UTC) #16
Gleb Lanbin
On 2017/04/06 17:44:21, ikilpatrick wrote: > https://codereview.chromium.org/2798203002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc > File third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc > (right): > > https://codereview.chromium.org/2798203002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_inline_layout_algorithm.cc#newcode336 ...
3 years, 8 months ago (2017-04-06 17:51:59 UTC) #17
Gleb Lanbin
On 2017/04/06 17:51:59, Gleb Lanbin wrote: > On 2017/04/06 17:44:21, ikilpatrick wrote: > > > ...
3 years, 8 months ago (2017-04-06 19:48:11 UTC) #21
ikilpatrick
lgtm
3 years, 8 months ago (2017-04-06 20:35:13 UTC) #23
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/2798203002/40001
3 years, 8 months ago (2017-04-06 21:51:10 UTC) #27
commit-bot: I haz the power
3 years, 8 months ago (2017-04-06 22:15:34 UTC) #30
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/d3920ccc81711676a41982bcae3a...

Powered by Google App Engine
This is Rietveld 408576698