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

Unified Diff: third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.h

Issue 2420413005: Collect @viewport before constructing RuleSets. (Closed)
Patch Set: Rebased Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.h
diff --git a/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.h b/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.h
index 4261e1bb7dba0a252de82208838b21c0753b623e..192df90bb46be0d6f2094171579afeed51d7447e 100644
--- a/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.h
+++ b/third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.h
@@ -55,11 +55,6 @@ class CORE_EXPORT ViewportStyleResolver
void collectViewportRulesFromAuthorSheet(const CSSStyleSheet&);
- enum Origin { UserAgentOrigin, AuthorOrigin };
-
- void collectViewportRules();
- void collectViewportRules(RuleSet*, Origin);
-
DECLARE_TRACE();
private:
@@ -68,6 +63,7 @@ class CORE_EXPORT ViewportStyleResolver
void reset();
void resolve();
+ enum Origin { UserAgentOrigin, AuthorOrigin };
enum UpdateType { NoUpdate, Resolve, CollectRules };
void collectViewportRulesFromUASheets();

Powered by Google App Engine
This is Rietveld 408576698