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

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

Issue 13646013: Enable support for CSS Conditional Rules (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 9f08546d0d53780a5bdea075364f58f0e188218b..7665b751854db125ffe4212dd2f3d65dcb364a57 100644
--- a/Source/core/css/StyleRule.h
+++ b/Source/core/css/StyleRule.h
@@ -46,9 +46,7 @@ public:
Page,
Keyframes,
Keyframe, // Not used. These are internally non-rule StyleKeyframe objects.
-#if ENABLE(CSS3_CONDITIONAL_RULES)
Supports = 12,
-#endif
#if ENABLE(CSS_DEVICE_ADAPTATION)
Viewport = 15,
#endif
@@ -66,9 +64,7 @@ public:
bool isPageRule() const { return type() == Page; }
bool isStyleRule() const { return type() == Style; }
bool isRegionRule() const { return type() == Region; }
-#if ENABLE(CSS3_CONDITIONAL_RULES)
bool isSupportsRule() const { return type() == Supports; }
-#endif
#if ENABLE(CSS_DEVICE_ADAPTATION)
bool isViewportRule() const { return type() == Viewport; }
#endif
@@ -220,7 +216,6 @@ private:
RefPtr<MediaQuerySet> m_mediaQueries;
};
-#if ENABLE(CSS3_CONDITIONAL_RULES)
class StyleRuleSupports : public StyleRuleGroup {
public:
static PassRefPtr<StyleRuleSupports> create(const String& conditionText, bool conditionIsSupported, Vector<RefPtr<StyleRuleBase> >& adoptRules)
@@ -239,7 +234,6 @@ private:
String m_conditionText;
bool m_conditionIsSupported;
};
-#endif
class StyleRuleRegion : public StyleRuleGroup {
public:
@@ -305,13 +299,11 @@ inline const StyleRuleMedia* toStyleRuleMedia(const StyleRuleGroup* rule)
return static_cast<const StyleRuleMedia*>(rule);
}
-#if ENABLE(CSS3_CONDITIONAL_RULES)
inline const StyleRuleSupports* toStyleRuleSupports(const StyleRuleGroup* rule)
{
ASSERT_WITH_SECURITY_IMPLICATION(!rule || rule->isSupportsRule());
return static_cast<const StyleRuleSupports*>(rule);
}
-#endif
inline const StyleRuleRegion* toStyleRuleRegion(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