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

Issue 181333003: [CSS Grid Layout] Use Render methods, rather than style, to determine shrink-to-fit behavior (Closed)

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

Description

[CSS Grid Layout] Use Render methods, rather than style, to determine shrink-to-fit behavior In order to determine whether the RemainingSpace is undetermined or not (shrink-to-fit) the current algorithm is checking out the style for clarifying if the Render object is float or absolute positioned. It's better to use the Render functions instead, since the style might be applied or not, depending on several factors, like CSS properties inheritance. BUG=79180, 234204 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168573

Patch Set 1 #

Total comments: 1

Patch Set 2 : Added tests for the shrink-to-fit behaviour. #

Total comments: 5

Patch Set 3 : Applied suggested changes. #

Total comments: 1

Patch Set 4 : Some improvements in the test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -3 lines) Patch
A LayoutTests/fast/css-grid-layout/grid-element-shrink-to-fit.html View 1 2 3 1 chunk +83 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/grid-element-shrink-to-fit-expected.txt View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M Source/core/rendering/RenderGrid.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/rendering/RenderGrid.cpp View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
jfernandez
6 years, 9 months ago (2014-02-26 12:27:02 UTC) #1
Julien - ping for review
One comment but the direction looks good. Beware that the description seems too long (above ...
6 years, 9 months ago (2014-02-26 22:43:42 UTC) #2
jfernandez
On 2014/02/26 22:43:42, Julien Chaffraix - PST wrote: > One comment but the direction looks ...
6 years, 9 months ago (2014-02-28 23:02:09 UTC) #3
Julien - ping for review
lgtm Don't land without properly wrapping the description (it's the second time I mention it). ...
6 years, 9 months ago (2014-03-04 18:33:27 UTC) #4
jfernandez
Changed description and applied suggested changes. https://codereview.chromium.org/181333003/diff/20001/LayoutTests/fast/css-grid-layout/grid-element-shink-to-fit.html File LayoutTests/fast/css-grid-layout/grid-element-shink-to-fit.html (right): https://codereview.chromium.org/181333003/diff/20001/LayoutTests/fast/css-grid-layout/grid-element-shink-to-fit.html#newcode5 LayoutTests/fast/css-grid-layout/grid-element-shink-to-fit.html:5: testRunner.overridePreference("WebKitCSSGridLayoutEnabled", 1); On ...
6 years, 9 months ago (2014-03-05 12:39:50 UTC) #5
jfernandez
The CQ bit was checked by jfernandez@igalia.com
6 years, 9 months ago (2014-03-05 12:40:03 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jfernandez@igalia.com/181333003/40001
6 years, 9 months ago (2014-03-05 12:40:16 UTC) #7
jfernandez
The CQ bit was unchecked by jfernandez@igalia.com
6 years, 9 months ago (2014-03-05 12:56:05 UTC) #8
Manuel Rego
https://codereview.chromium.org/181333003/diff/40001/LayoutTests/fast/css-grid-layout/grid-element-shink-to-fit.html File LayoutTests/fast/css-grid-layout/grid-element-shink-to-fit.html (right): https://codereview.chromium.org/181333003/diff/40001/LayoutTests/fast/css-grid-layout/grid-element-shink-to-fit.html#newcode55 LayoutTests/fast/css-grid-layout/grid-element-shink-to-fit.html:55: <div class="gg" id="one"></div> This "gg" class is undefined here. ...
6 years, 9 months ago (2014-03-05 12:56:11 UTC) #9
jfernandez
The CQ bit was checked by jfernandez@igalia.com
6 years, 9 months ago (2014-03-05 13:33:04 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jfernandez@igalia.com/181333003/60001
6 years, 9 months ago (2014-03-05 13:33:09 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jfernandez@igalia.com/181333003/60001
6 years, 9 months ago (2014-03-05 20:58:37 UTC) #12
commit-bot: I haz the power
6 years, 9 months ago (2014-03-06 04:25:08 UTC) #13
Message was sent while issue was closed.
Change committed as 168573

Powered by Google App Engine
This is Rietveld 408576698