Index: Source/core/css/StyleRule.cpp |
diff --git a/Source/core/css/StyleRule.cpp b/Source/core/css/StyleRule.cpp |
index 78358f3a8de9c7536a480b60783e929fc2c09d26..c7711907920cc398afddad3e456dbcdc8d34452e 100644 |
--- a/Source/core/css/StyleRule.cpp |
+++ b/Source/core/css/StyleRule.cpp |
@@ -85,9 +85,7 @@ void StyleRuleBase::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const |
case Keyframes: |
static_cast<const StyleRuleKeyframes*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); |
return; |
-#if ENABLE(CSS3_CONDITIONAL_RULES) |
case Supports: |
-#endif |
case HostInternal: |
static_cast<const StyleRuleHost*>(this)->reportDescendantMemoryUsage(memoryObjectInfo); |
return; |
@@ -126,11 +124,9 @@ void StyleRuleBase::destroy() |
case Media: |
delete static_cast<StyleRuleMedia*>(this); |
return; |
-#if ENABLE(CSS3_CONDITIONAL_RULES) |
case Supports: |
delete static_cast<StyleRuleSupports*>(this); |
return; |
-#endif |
#if ENABLE(CSS_REGIONS) |
case Region: |
delete static_cast<StyleRuleRegion*>(this); |
@@ -176,10 +172,8 @@ PassRefPtr<StyleRuleBase> StyleRuleBase::copy() const |
return static_cast<const StyleRuleFontFace*>(this)->copy(); |
case Media: |
return static_cast<const StyleRuleMedia*>(this)->copy(); |
-#if ENABLE(CSS3_CONDITIONAL_RULES) |
case Supports: |
return static_cast<const StyleRuleSupports*>(this)->copy(); |
-#endif |
#if ENABLE(CSS_REGIONS) |
case Region: |
return static_cast<const StyleRuleRegion*>(this)->copy(); |
@@ -228,11 +222,9 @@ PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet |
case Media: |
rule = CSSMediaRule::create(static_cast<StyleRuleMedia*>(self), parentSheet); |
break; |
-#if ENABLE(CSS3_CONDITIONAL_RULES) |
case Supports: |
rule = CSSSupportsRule::create(static_cast<StyleRuleSupports*>(self), parentSheet); |
break; |
-#endif |
#if ENABLE(CSS_REGIONS) |
case Region: |
rule = WebKitCSSRegionRule::create(static_cast<StyleRuleRegion*>(self), parentSheet); |
@@ -428,7 +420,6 @@ void StyleRuleMedia::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObjectI |
} |
-#if ENABLE(CSS3_CONDITIONAL_RULES) |
StyleRuleSupports::StyleRuleSupports(const String& conditionText, bool conditionIsSupported, Vector<RefPtr<StyleRuleBase> >& adoptRules) |
: StyleRuleGroup(Supports, adoptRules) |
, m_conditionText(conditionText) |
@@ -442,7 +433,6 @@ StyleRuleSupports::StyleRuleSupports(const StyleRuleSupports& o) |
, m_conditionIsSupported(o.m_conditionIsSupported) |
{ |
} |
-#endif |
StyleRuleRegion::StyleRuleRegion(Vector<OwnPtr<CSSParserSelector> >* selectors, Vector<RefPtr<StyleRuleBase> >& adoptRules) |
: StyleRuleGroup(Region, adoptRules) |