| Index: Source/core/css/StyleRule.cpp
|
| diff --git a/Source/core/css/StyleRule.cpp b/Source/core/css/StyleRule.cpp
|
| index d7633baa47da465b6c4d67b716d380a2f3f2ac63..90179fece5e4a411869795818bea906c0ade74e7 100644
|
| --- a/Source/core/css/StyleRule.cpp
|
| +++ b/Source/core/css/StyleRule.cpp
|
| @@ -74,11 +74,9 @@ void StyleRuleBase::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
|
| case Media:
|
| static_cast<const StyleRuleMedia*>(this)->reportDescendantMemoryUsage(memoryObjectInfo);
|
| return;
|
| -#if ENABLE(CSS_REGIONS)
|
| case Region:
|
| static_cast<const StyleRuleRegion*>(this)->reportDescendantMemoryUsage(memoryObjectInfo);
|
| return;
|
| -#endif
|
| case Import:
|
| static_cast<const StyleRuleImport*>(this)->reportDescendantMemoryUsage(memoryObjectInfo);
|
| return;
|
| @@ -100,9 +98,6 @@ void StyleRuleBase::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
|
| case Unknown:
|
| case Charset:
|
| case Keyframe:
|
| -#if !ENABLE(CSS_REGIONS)
|
| - case Region:
|
| -#endif
|
| ASSERT_NOT_REACHED();
|
| return;
|
| }
|
| @@ -127,11 +122,9 @@ void StyleRuleBase::destroy()
|
| case Supports:
|
| delete static_cast<StyleRuleSupports*>(this);
|
| return;
|
| -#if ENABLE(CSS_REGIONS)
|
| case Region:
|
| delete static_cast<StyleRuleRegion*>(this);
|
| return;
|
| -#endif
|
| case Import:
|
| delete static_cast<StyleRuleImport*>(this);
|
| return;
|
| @@ -152,9 +145,6 @@ void StyleRuleBase::destroy()
|
| case Unknown:
|
| case Charset:
|
| case Keyframe:
|
| -#if !ENABLE(CSS_REGIONS)
|
| - case Region:
|
| -#endif
|
| ASSERT_NOT_REACHED();
|
| return;
|
| }
|
| @@ -174,10 +164,8 @@ PassRefPtr<StyleRuleBase> StyleRuleBase::copy() const
|
| return static_cast<const StyleRuleMedia*>(this)->copy();
|
| case Supports:
|
| return static_cast<const StyleRuleSupports*>(this)->copy();
|
| -#if ENABLE(CSS_REGIONS)
|
| case Region:
|
| return static_cast<const StyleRuleRegion*>(this)->copy();
|
| -#endif
|
| case Import:
|
| // FIXME: Copy import rules.
|
| ASSERT_NOT_REACHED();
|
| @@ -195,9 +183,6 @@ PassRefPtr<StyleRuleBase> StyleRuleBase::copy() const
|
| case Unknown:
|
| case Charset:
|
| case Keyframe:
|
| -#if !ENABLE(CSS_REGIONS)
|
| - case Region:
|
| -#endif
|
| ASSERT_NOT_REACHED();
|
| return 0;
|
| }
|
| @@ -225,11 +210,9 @@ PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet
|
| case Supports:
|
| rule = CSSSupportsRule::create(static_cast<StyleRuleSupports*>(self), parentSheet);
|
| break;
|
| -#if ENABLE(CSS_REGIONS)
|
| case Region:
|
| rule = WebKitCSSRegionRule::create(static_cast<StyleRuleRegion*>(self), parentSheet);
|
| break;
|
| -#endif
|
| case Import:
|
| rule = CSSImportRule::create(static_cast<StyleRuleImport*>(self), parentSheet);
|
| break;
|
| @@ -250,9 +233,6 @@ PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet
|
| case Unknown:
|
| case Charset:
|
| case Keyframe:
|
| -#if !ENABLE(CSS_REGIONS)
|
| - case Region:
|
| -#endif
|
| ASSERT_NOT_REACHED();
|
| return 0;
|
| }
|
|
|