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

Unified Diff: sky/engine/core/css/StyleRule.h

Issue 810543002: Remove dead StyleRuleFilter. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « no previous file | sky/engine/core/css/StyleRule.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StyleRule.h
diff --git a/sky/engine/core/css/StyleRule.h b/sky/engine/core/css/StyleRule.h
index 3c5e283381714c418b3963823955246f39b10360..ee0e6a9271cd57eb6fb7a0c0ed0ffa452a075e2b 100644
--- a/sky/engine/core/css/StyleRule.h
+++ b/sky/engine/core/css/StyleRule.h
@@ -42,7 +42,6 @@ public:
Keyframes = 5,
Keyframe, // Not used. These are internally non-rule StyleKeyframe objects.
Supports = 12,
- Filter = 17
};
Type type() const { return static_cast<Type>(m_type); }
@@ -52,7 +51,6 @@ public:
bool isMediaRule() const { return type() == Media; }
bool isStyleRule() const { return type() == Style; }
bool isSupportsRule() const { return type() == Supports; }
- bool isFilterRule() const { return type() == Filter; }
void deref()
{
@@ -157,26 +155,6 @@ private:
bool m_conditionIsSupported;
};
-class StyleRuleFilter final : public StyleRuleBase {
- WTF_MAKE_NONCOPYABLE(StyleRuleFilter);
-public:
- static PassRefPtr<StyleRuleFilter> create(const String& filterName) { return adoptRef(new StyleRuleFilter(filterName)); }
-
- ~StyleRuleFilter();
-
- const String& filterName() const { return m_filterName; }
-
- const StylePropertySet& properties() const { return *m_properties; }
-
- void setProperties(PassRefPtr<StylePropertySet>);
-
-private:
- StyleRuleFilter(const String&);
-
- String m_filterName;
- RefPtr<StylePropertySet> m_properties;
-};
-
#define DEFINE_STYLE_RULE_TYPE_CASTS(Type) \
DEFINE_TYPE_CASTS(StyleRule##Type, StyleRuleBase, rule, rule->is##Type##Rule(), rule.is##Type##Rule())
@@ -184,7 +162,6 @@ DEFINE_TYPE_CASTS(StyleRule, StyleRuleBase, rule, rule->isStyleRule(), rule.isSt
DEFINE_STYLE_RULE_TYPE_CASTS(FontFace);
DEFINE_STYLE_RULE_TYPE_CASTS(Media);
DEFINE_STYLE_RULE_TYPE_CASTS(Supports);
-DEFINE_STYLE_RULE_TYPE_CASTS(Filter);
} // namespace blink
« no previous file with comments | « no previous file | sky/engine/core/css/StyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698