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

Unified Diff: Source/WebCore/css/StyleRule.cpp

Issue 13839016: Remove CSS_SHADERS compile-time flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
Index: Source/WebCore/css/StyleRule.cpp
diff --git a/Source/WebCore/css/StyleRule.cpp b/Source/WebCore/css/StyleRule.cpp
index e0046c11c64411c4647541edffaec515387e49bc..b91e5dbf246a5db2d8e59fdd8939746816494bea 100644
--- a/Source/WebCore/css/StyleRule.cpp
+++ b/Source/WebCore/css/StyleRule.cpp
@@ -98,11 +98,9 @@ void StyleRuleBase::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
static_cast<const StyleRuleViewport*>(this)->reportDescendantMemoryUsage(memoryObjectInfo);
return;
#endif
-#if ENABLE(CSS_SHADERS)
case Filter:
static_cast<const StyleRuleFilter*>(this)->reportDescendantMemoryUsage(memoryObjectInfo);
return;
-#endif
case Unknown:
case Charset:
case Keyframe:
@@ -156,11 +154,9 @@ void StyleRuleBase::destroy()
delete static_cast<StyleRuleViewport*>(this);
return;
#endif
-#if ENABLE(CSS_SHADERS)
case Filter:
delete static_cast<StyleRuleFilter*>(this);
return;
-#endif
case Unknown:
case Charset:
case Keyframe:
@@ -206,10 +202,8 @@ PassRefPtr<StyleRuleBase> StyleRuleBase::copy() const
case Viewport:
return static_cast<const StyleRuleViewport*>(this)->copy();
#endif
-#if ENABLE(CSS_SHADERS)
case Filter:
return static_cast<const StyleRuleFilter*>(this)->copy();
-#endif
case Unknown:
case Charset:
case Keyframe:
@@ -266,11 +260,9 @@ PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet
rule = CSSHostRule::create(static_cast<StyleRuleHost*>(self), parentSheet);
break;
#endif
-#if ENABLE(CSS_SHADERS)
case Filter:
rule = WebKitCSSFilterRule::create(static_cast<StyleRuleFilter*>(self), parentSheet);
break;
-#endif
case Unknown:
case Charset:
case Keyframe:
@@ -513,7 +505,6 @@ void StyleRuleViewport::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObje
}
#endif // ENABLE(CSS_DEVICE_ADAPTATION)
-#if ENABLE(CSS_SHADERS)
StyleRuleFilter::StyleRuleFilter(const String& filterName)
: StyleRuleBase(Filter, 0)
, m_filterName(filterName)
@@ -549,6 +540,5 @@ void StyleRuleFilter::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObject
info.addMember(m_filterName);
info.addMember(m_properties);
}
-#endif // ENABLE(CSS_SHADERS)
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698