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

Issue 185723005: Use correct container width as base for percentage margins. (Closed)

Created:
6 years, 9 months ago by rune
Modified:
6 years, 9 months ago
CC:
blink-reviews, mstensho+blink_opera.com, bemjb+rendering_chromium.org, dsinclair, zoltan1, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, pdr.
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Use correct container width as base for percentage margins. Blocks establishing a new BFC need to avoid floats in its parent BFC. Also, computing used values for auto margins for such blocks is affected by the available line width constrained by these floats. However, percentage sized margins must be calculated based on the full containing block width, not the available line width. R=jchaffraix@chromium.org BUG=348927 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169030

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed review issues. #

Total comments: 2

Patch Set 3 : Added requested table test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -15 lines) Patch
A LayoutTests/fast/css/bfc-percentage-margin.html View 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/bfc-percentage-margin-expected.html View 1 1 chunk +20 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/vertical-lr-bfc-auto-margins-beside-float.html View 1 2 1 chunk +25 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/vertical-lr-bfc-auto-margins-beside-float-expected.html View 1 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/vertical-lr-table-percent-margins-beside-float.html View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
A LayoutTests/fast/css/vertical-lr-table-percent-margins-beside-float-expected.html View 1 2 1 chunk +26 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderBox.cpp View 1 2 chunks +12 lines, -11 lines 0 comments Download
M Source/core/rendering/RenderTable.cpp View 1 1 chunk +1 line, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
rune
6 years, 9 months ago (2014-03-04 10:43:54 UTC) #1
Julien - ping for review
https://codereview.chromium.org/185723005/diff/1/LayoutTests/fast/css/bfc-percentage-margin-expected.html File LayoutTests/fast/css/bfc-percentage-margin-expected.html (right): https://codereview.chromium.org/185723005/diff/1/LayoutTests/fast/css/bfc-percentage-margin-expected.html#newcode15 LayoutTests/fast/css/bfc-percentage-margin-expected.html:15: <div class="square right"></div> It's weird that the offset is ...
6 years, 9 months ago (2014-03-06 23:05:05 UTC) #2
rune
https://codereview.chromium.org/185723005/diff/1/LayoutTests/fast/css/bfc-percentage-margin-expected.html File LayoutTests/fast/css/bfc-percentage-margin-expected.html (right): https://codereview.chromium.org/185723005/diff/1/LayoutTests/fast/css/bfc-percentage-margin-expected.html#newcode15 LayoutTests/fast/css/bfc-percentage-margin-expected.html:15: <div class="square right"></div> On 2014/03/06 23:05:05, Julien Chaffraix - ...
6 years, 9 months ago (2014-03-07 14:20:23 UTC) #3
Julien - ping for review
The code change looks great. I think we should add a test for the table ...
6 years, 9 months ago (2014-03-10 20:27:01 UTC) #4
rune
Added table test now. https://codereview.chromium.org/185723005/diff/20001/Source/core/rendering/RenderBox.cpp File Source/core/rendering/RenderBox.cpp (right): https://codereview.chromium.org/185723005/diff/20001/Source/core/rendering/RenderBox.cpp#newcode2445 Source/core/rendering/RenderBox.cpp:2445: LayoutUnit availableWidth = containerWidth; On ...
6 years, 9 months ago (2014-03-12 12:21:36 UTC) #5
Julien - ping for review
lgtm
6 years, 9 months ago (2014-03-12 15:09:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rune@opera.com/185723005/40001
6 years, 9 months ago (2014-03-12 15:09:08 UTC) #7
commit-bot: I haz the power
6 years, 9 months ago (2014-03-12 16:25:54 UTC) #8
Message was sent while issue was closed.
Change committed as 169030

Powered by Google App Engine
This is Rietveld 408576698