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

Issue 2410283005: Don't generate RuleSets for viewport UA sheets. (Closed)

Created:
4 years, 2 months ago by rune
Modified:
4 years, 2 months ago
Reviewers:
Timothy Loh
CC:
chromium-reviews, kenneth.christiansen, blink-reviews-style_chromium.org, blink-reviews-css, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't generate RuleSets for viewport UA sheets. Start collecting UA @viewport rules from the StyleSheetContents instead of the RuleSet. The reason is that we need to collect viewport rules before creating the RuleSet in order to use the correct actual viewport for evaluating media queries. This is split out from [1]. Also introducing a separate MediaQueryEvaluator in the ViewportStyleResolver which should eventually be based on the initial viewport and not the actual viewport as described in the CSS Device Adaptation spec. [1] https://codereview.chromium.org/2405143003 R=timloh@chromium.org BUG=463098 Committed: https://crrev.com/4b7a7561cf670c265fbeccaa1a279db7e18686b6 Cr-Commit-Position: refs/heads/master@{#425284}

Patch Set 1 #

Patch Set 2 : Don't generate RuleSets for viewport UA sheets. #

Total comments: 2

Patch Set 3 : Missing traversal of @supports rules. #

Patch Set 4 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -71 lines) Patch
M third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.h View 2 chunks +4 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp View 3 chunks +15 lines, -43 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.h View 2 chunks +7 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp View 1 2 4 chunks +48 lines, -17 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
rune
ptal
4 years, 2 months ago (2016-10-13 12:15:10 UTC) #3
Timothy Loh
lgtm https://codereview.chromium.org/2410283005/diff/20001/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp File third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp (right): https://codereview.chromium.org/2410283005/diff/20001/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode100 third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp:100: if (!rule->isMediaRule()) Also needs to recurse on @supports ...
4 years, 2 months ago (2016-10-14 04:27:25 UTC) #10
rune
https://codereview.chromium.org/2410283005/diff/20001/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp File third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp (right): https://codereview.chromium.org/2410283005/diff/20001/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode100 third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp:100: if (!rule->isMediaRule()) On 2016/10/14 04:27:24, Timothy Loh wrote: > ...
4 years, 2 months ago (2016-10-14 07:59:02 UTC) #11
rune
On 2016/10/14 07:59:02, rune wrote: > https://codereview.chromium.org/2410283005/diff/20001/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp > File third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp > (right): > > https://codereview.chromium.org/2410283005/diff/20001/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp#newcode100 ...
4 years, 2 months ago (2016-10-14 08:16:37 UTC) #12
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/2410283005/60001
4 years, 2 months ago (2016-10-14 08:40:03 UTC) #15
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 2 months ago (2016-10-14 09:57:46 UTC) #16
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 10:00:04 UTC) #18
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/4b7a7561cf670c265fbeccaa1a279db7e18686b6
Cr-Commit-Position: refs/heads/master@{#425284}

Powered by Google App Engine
This is Rietveld 408576698