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

Issue 25257003: Empty @viewport should not override legacy viewport. (Closed)

Created:
7 years, 2 months ago by rune
Modified:
7 years, 2 months ago
CC:
blink-reviews, kenneth.christiansen, dglazkov+blink, apavlov+blink_chromium.org, darktears
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Empty @viewport should not override legacy viewport. @viewport styles should not be considered present in author styles if there is not a single descriptor present. This is not specified anywhere, though. Marking the ViewportStyleResolver with author styles present when there were no descriptors caused an assert to trigger (see mentioned BUG). This is fixed by always require at least one descriptor to be present in order to set the flag for author style presence, keeping the assert. As part of this fix, collectViewportRules was refactored into ViewportStyleResolver to resolve a FIXME in the StyleResolver. BUG=299719 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=158625

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -30 lines) Patch
A + LayoutTests/fast/viewport/viewport-legacy-ordering-10.html View 2 chunks +6 lines, -6 lines 0 comments Download
A LayoutTests/fast/viewport/viewport-legacy-ordering-10-expected.txt View 1 chunk +3 lines, -0 lines 1 comment Download
M Source/core/css/resolver/ScopedStyleResolver.cpp View 2 chunks +4 lines, -1 line 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 chunk +0 lines, -6 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 2 chunks +3 lines, -14 lines 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.h View 3 chunks +6 lines, -2 lines 0 comments Download
M Source/core/css/resolver/ViewportStyleResolver.cpp View 2 chunks +13 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
rune
7 years, 2 months ago (2013-09-30 12:56:59 UTC) #1
apavlov
lgtm Thanks for fixing!
7 years, 2 months ago (2013-09-30 13:04:44 UTC) #2
kenneth.r.christiansen
https://codereview.chromium.org/25257003/diff/1/LayoutTests/fast/viewport/viewport-legacy-ordering-10-expected.txt File LayoutTests/fast/viewport/viewport-legacy-ordering-10-expected.txt (right): https://codereview.chromium.org/25257003/diff/1/LayoutTests/fast/viewport/viewport-legacy-ordering-10-expected.txt#newcode2 LayoutTests/fast/viewport/viewport-legacy-ordering-10-expected.txt:2: PASS Check that Meta viewport is not overridden by ...
7 years, 2 months ago (2013-09-30 13:06:08 UTC) #3
rune
On 2013/09/30 13:06:08, kenneth.r.christiansen wrote: > https://codereview.chromium.org/25257003/diff/1/LayoutTests/fast/viewport/viewport-legacy-ordering-10-expected.txt > File LayoutTests/fast/viewport/viewport-legacy-ordering-10-expected.txt (right): > > https://codereview.chromium.org/25257003/diff/1/LayoutTests/fast/viewport/viewport-legacy-ordering-10-expected.txt#newcode2 > ...
7 years, 2 months ago (2013-09-30 13:12:11 UTC) #4
kenneth.r.christiansen
If someone added a @viewport and they made a mistake, they might think it is ...
7 years, 2 months ago (2013-09-30 13:14:05 UTC) #5
rune
On 2013/09/30 13:14:05, kenneth.r.christiansen wrote: > If someone added a @viewport and they made a ...
7 years, 2 months ago (2013-09-30 13:30:45 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/25257003/1
7 years, 2 months ago (2013-10-01 10:30:23 UTC) #7
commit-bot: I haz the power
7 years, 2 months ago (2013-10-01 11:25:44 UTC) #8
Message was sent while issue was closed.
Change committed as 158625

Powered by Google App Engine
This is Rietveld 408576698