diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-25 15:09:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-25 15:09:11 +0200 |
commit | a89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd (patch) | |
tree | b7abd9f49ae1d4d2e426a5883bfccd42b8e2ee12 /Source/WebCore/css/StyleRule.cpp | |
parent | 8d473cf9743f1d30a16a27114e93bd5af5648d23 (diff) | |
download | qtwebkit-a89b2ebb8e192c5e8cea21079bda2ee2c0c7dddd.tar.gz |
Imported WebKit commit eb5c1b8fe4d4b1b90b5137433fc58a91da0e6878 (http://svn.webkit.org/repository/webkit/trunk@118516)
Diffstat (limited to 'Source/WebCore/css/StyleRule.cpp')
-rw-r--r-- | Source/WebCore/css/StyleRule.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Source/WebCore/css/StyleRule.cpp b/Source/WebCore/css/StyleRule.cpp index 83b2a6153..400f41b23 100644 --- a/Source/WebCore/css/StyleRule.cpp +++ b/Source/WebCore/css/StyleRule.cpp @@ -28,6 +28,7 @@ #include "CSSMediaRule.h" #include "CSSPageRule.h" #include "CSSStyleRule.h" +#include "StyleRuleImport.h" #include "WebKitCSSKeyframeRule.h" #include "WebKitCSSKeyframesRule.h" #include "WebKitCSSRegionRule.h" @@ -59,9 +60,11 @@ void StyleRuleBase::destroy() case Media: delete static_cast<StyleRuleMedia*>(this); return; +#if ENABLE(CSS_REGIONS) case Region: delete static_cast<StyleRuleRegion*>(this); return; +#endif case Import: delete static_cast<StyleRuleImport*>(this); return; @@ -71,6 +74,9 @@ void StyleRuleBase::destroy() case Unknown: case Charset: case Keyframe: +#if !ENABLE(CSS_REGIONS) + case Region: +#endif ASSERT_NOT_REACHED(); return; } @@ -88,8 +94,10 @@ PassRefPtr<StyleRuleBase> StyleRuleBase::copy() const return static_cast<const StyleRuleFontFace*>(this)->copy(); case Media: return static_cast<const StyleRuleMedia*>(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(); @@ -99,6 +107,9 @@ PassRefPtr<StyleRuleBase> StyleRuleBase::copy() const case Unknown: case Charset: case Keyframe: +#if !ENABLE(CSS_REGIONS) + case Region: +#endif ASSERT_NOT_REACHED(); return 0; } @@ -123,9 +134,11 @@ PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet case Media: rule = CSSMediaRule::create(static_cast<StyleRuleMedia*>(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; @@ -135,6 +148,9 @@ PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet case Unknown: case Charset: case Keyframe: +#if !ENABLE(CSS_REGIONS) + case Region: +#endif ASSERT_NOT_REACHED(); return 0; } |