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

Issue 2711803007: Add ClearanceOffset to LayoutNG Constraint space. (Closed)

Created:
3 years, 10 months ago by Gleb Lanbin
Modified:
3 years, 10 months ago
Reviewers:
ikilpatrick
CC:
chromium-reviews, cbiesinger, ojan+watch_chromium.org, szager+layoutwatch_chromium.org, glebl+reviews_chromium.org, dgrogan+ng_chromium.org, atotic+reviews_chromium.org, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, zoltan1, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ClearanceOffset to LayoutNG Constraint space. It's used for the case when fragment can position itself but needs to know the current clearance line. In particular this change fixes the use case that has blocks with clearances, margins and intruding floats https://software.hixie.ch/utilities/js/live-dom-viewer/saved/4847 BUG=635619 TEST=PositionBlocksWithClearanceAndIntrudingFloats Review-Url: https://codereview.chromium.org/2711803007 Cr-Commit-Position: refs/heads/master@{#453036} Committed: https://chromium.googlesource.com/chromium/src/+/2d05eecafb761285205faf28e05f3c73f75efeb7

Patch Set 1 #

Total comments: 6

Patch Set 2 : fix comments #

Patch Set 3 : git rebase-update #

Patch Set 4 : update TestExpectations #

Messages

Total messages: 24 (16 generated)
Gleb Lanbin
3 years, 10 months ago (2017-02-23 23:30:03 UTC) #2
ikilpatrick
this looks really good, just one question about the margin strut. https://codereview.chromium.org/2711803007/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): ...
3 years, 10 months ago (2017-02-24 17:36:57 UTC) #3
Gleb Lanbin
thanks for the review. https://codereview.chromium.org/2711803007/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc (right): https://codereview.chromium.org/2711803007/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode799 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:799: curr_bfc_offset_.block_offset += curr_margin_strut_.Sum(); On 2017/02/24 ...
3 years, 10 months ago (2017-02-24 18:37:00 UTC) #4
ikilpatrick
lgtm, thanks for the additional comments. :)
3 years, 10 months ago (2017-02-24 18:39:17 UTC) #7
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/2711803007/40001
3 years, 10 months ago (2017-02-24 18:54:43 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/317942)
3 years, 10 months ago (2017-02-24 19:10:23 UTC) #14
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/2711803007/50009
3 years, 10 months ago (2017-02-25 01:12:51 UTC) #21
commit-bot: I haz the power
3 years, 10 months ago (2017-02-25 01:21:17 UTC) #24
Message was sent while issue was closed.
Committed patchset #4 (id:50009) as
https://chromium.googlesource.com/chromium/src/+/2d05eecafb761285205faf28e05f...

Powered by Google App Engine
This is Rietveld 408576698