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

Unified Diff: Source/core/css/StyleRule.h

Issue 16646002: Move the CSS Device Adaptation @viewport rule support behind a runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing Created 7 years, 6 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
« no previous file with comments | « Source/core/css/RuleSet.cpp ('k') | Source/core/css/StyleRule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StyleRule.h
diff --git a/Source/core/css/StyleRule.h b/Source/core/css/StyleRule.h
index 1ac9a804f49617492cdc1eb530a3e92758a169ae..f242baa6e12a165dfde589924067a3ba6bdef418 100644
--- a/Source/core/css/StyleRule.h
+++ b/Source/core/css/StyleRule.h
@@ -48,16 +48,14 @@ public:
Keyframes,
Keyframe, // Not used. These are internally non-rule StyleKeyframe objects.
Supports = 12,
-#if ENABLE(CSS_DEVICE_ADAPTATION)
Viewport = 15,
-#endif
Region = 16,
Filter = 17,
HostInternal = 18, // Spec says Host = 1001, but we can use only 5 bit for type().
};
Type type() const { return static_cast<Type>(m_type); }
-
+
bool isCharsetRule() const { return type() == Charset; }
bool isFontFaceRule() const { return type() == FontFace; }
bool isKeyframesRule() const { return type() == Keyframes; }
@@ -66,9 +64,7 @@ public:
bool isStyleRule() const { return type() == Style; }
bool isRegionRule() const { return type() == Region; }
bool isSupportsRule() const { return type() == Supports; }
-#if ENABLE(CSS_DEVICE_ADAPTATION)
bool isViewportRule() const { return type() == Viewport; }
-#endif
bool isImportRule() const { return type() == Import; }
bool isHostRule() const { return type() == HostInternal; }
bool isFilterRule() const { return type() == Filter; }
@@ -276,7 +272,6 @@ private:
StyleRuleHost(const StyleRuleHost& o) : StyleRuleGroup(o) { }
};
-#if ENABLE(CSS_DEVICE_ADAPTATION)
class StyleRuleViewport : public StyleRuleBase {
public:
static PassRefPtr<StyleRuleViewport> create() { return adoptRef(new StyleRuleViewport); }
@@ -298,7 +293,6 @@ private:
RefPtr<StylePropertySet> m_properties;
};
-#endif // ENABLE(CSS_DEVICE_ADAPTATION)
inline const StyleRuleMedia* toStyleRuleMedia(const StyleRuleGroup* rule)
{
« no previous file with comments | « Source/core/css/RuleSet.cpp ('k') | Source/core/css/StyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698