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

Issue 680063005: [CSS Grid Layout] Redefining grids inside media queries does not work (Closed)

Created:
6 years, 1 month ago by svillar
Modified:
6 years, 1 month ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, dglazkov+blink, ed+blinkwatch_opera.com, jfernandez, Manuel Rego, rwlbuis, rune+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[CSS Grid Layout] Redefining grids inside media queries does not work So the problem is that in StyleBuilderFunctions::applyValueCSSPropertyGridTemplateAreas we were assuming that we were always getting a fresh RenderStyle, something that is not true, because we might have overlapping declarations (multipled matching media queries, user styles, etc). As that function might be called multiple times, we need to properly regenerate the list of named grid lines each time the function is called because the NamedGridLinesMap returned by RenderStyle contains both the old explicit named grid lines and the old implicit named grid lines. BUG=427481 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185045

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -2 lines) Patch
A LayoutTests/fast/css-grid-layout/named-grid-areas-dynamic-with-media-query.html View 1 chunk +55 lines, -0 lines 0 comments Download
A LayoutTests/fast/css-grid-layout/named-grid-areas-dynamic-with-media-query-expected.html View 1 chunk +15 lines, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/css/resolver/StyleBuilderConverter.cpp View 1 chunk +20 lines, -0 lines 1 comment Download
M Source/core/css/resolver/StyleBuilderCustom.cpp View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
svillar
6 years, 1 month ago (2014-10-28 15:34:49 UTC) #2
svillar
On 2014/10/28 15:34:49, svillar wrote: @jchaffraix: mind taking a look please?
6 years, 1 month ago (2014-11-10 14:42:22 UTC) #4
Julien - ping for review
lgtm https://codereview.chromium.org/680063005/diff/1/Source/core/css/resolver/StyleBuilderConverter.cpp File Source/core/css/resolver/StyleBuilderConverter.cpp (right): https://codereview.chromium.org/680063005/diff/1/Source/core/css/resolver/StyleBuilderConverter.cpp#newcode500 Source/core/css/resolver/StyleBuilderConverter.cpp:500: std::sort(gridLineIndexes.begin(), gridLineIndexes.end()); We may know do 2 sorting ...
6 years, 1 month ago (2014-11-10 16:03:33 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/680063005/1
6 years, 1 month ago (2014-11-10 16:03:45 UTC) #7
Timothy Loh
On 2014/10/28 15:34:49, svillar wrote: FYI eventually (when I or someone else get's around to ...
6 years, 1 month ago (2014-11-10 16:07:41 UTC) #8
commit-bot: I haz the power
Committed patchset #1 (id:1) as 185045
6 years, 1 month ago (2014-11-10 17:08:04 UTC) #9
svillar
6 years, 1 month ago (2014-11-11 07:42:07 UTC) #10
Message was sent while issue was closed.
On 2014/11/10 16:07:41, Timothy Loh wrote:
> On 2014/10/28 15:34:49, svillar wrote:
> 
> FYI eventually (when I or someone else get's around to rebasing
> https://codereview.chromium.org/350333003/) we won't need this code. Maybe a
> good idea to make note of the patches you're landing to work around the issue
so
> we can remove them once this is fixed.

Thanks for pointing this out. If everythings goes well, we will only have to
revert this once the other patch lands.

Powered by Google App Engine
This is Rietveld 408576698