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

Issue 2330153002: [layoutng] Better handling of border and padding (Closed)

Created:
4 years, 3 months ago by cbiesinger
Modified:
4 years, 3 months ago
CC:
chromium-reviews, cbiesinger, ojan+watch_chromium.org, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[layoutng] Better handling of border and padding This makes a few changes to the border/padding handling: - Cache the computed value in a member variable instead of recomputing it for each child - Makes sure to add block_end border and padding to the box size - Takes border and padding into account for overflow size, and also for the constraint space size - Remove functions that duplicate functionality from computeBorder/computePadding BUG=635619 Committed: https://crrev.com/f714d2bd4450811bae2c849b075344eb31814cd6 Cr-Commit-Position: refs/heads/master@{#418368}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebased #

Total comments: 2

Patch Set 3 : undo comment change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -72 lines) Patch
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc View 1 3 chunks +13 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.h View 1 1 chunk +0 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/core/layout/ng/ng_length_utils.cc View 1 2 chunks +8 lines, -44 lines 0 comments Download

Messages

Total messages: 17 (7 generated)
mstensho (USE GERRIT)
https://codereview.chromium.org/2330153002/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/2330153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode52 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:52: NGLogicalSize(inline_size - border_and_padding_.inline_start, I may lack some understanding of ...
4 years, 3 months ago (2016-09-12 20:05:51 UTC) #2
cbiesinger
https://codereview.chromium.org/2330153002/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/2330153002/diff/1/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc#newcode52 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc:52: NGLogicalSize(inline_size - border_and_padding_.inline_start, On 2016/09/12 20:05:50, mstensho wrote: > ...
4 years, 3 months ago (2016-09-13 18:04:54 UTC) #3
cbiesinger
I was going to write a test for percentage handling with border and padding, but ...
4 years, 3 months ago (2016-09-13 19:31:54 UTC) #6
cbiesinger
Er, also, this is rebased to trunk -- please take a look!
4 years, 3 months ago (2016-09-13 19:32:23 UTC) #7
mstensho (USE GERRIT)
lgtm without the test change. https://codereview.chromium.org/2330153002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc (right): https://codereview.chromium.org/2330153002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc#newcode196 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc:196: // #div2 { padding:5px ...
4 years, 3 months ago (2016-09-13 19:45:19 UTC) #8
cbiesinger
https://codereview.chromium.org/2330153002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc File third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc (right): https://codereview.chromium.org/2330153002/diff/20001/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc#newcode196 third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm_test.cc:196: // #div2 { padding:5px 6px 7px 8px; } On ...
4 years, 3 months ago (2016-09-13 19:47:03 UTC) #11
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/2330153002/40001
4 years, 3 months ago (2016-09-13 19:47:27 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-13 21:06:34 UTC) #14
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/f714d2bd4450811bae2c849b075344eb31814cd6 Cr-Commit-Position: refs/heads/master@{#418368}
4 years, 3 months ago (2016-09-13 21:07:51 UTC) #16
eae
4 years, 3 months ago (2016-09-15 09:25:20 UTC) #17
Message was sent while issue was closed.
LGTM (post facto)

Powered by Google App Engine
This is Rietveld 408576698