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

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

Issue 807703003: Remove @media rules. (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 | « sky/engine/core/css/RuleSet.cpp ('k') | 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 ee0e6a9271cd57eb6fb7a0c0ed0ffa452a075e2b..9839fe8f2a86e86c4025eef5a43d508aff5b666f 100644
--- a/sky/engine/core/css/StyleRule.h
+++ b/sky/engine/core/css/StyleRule.h
@@ -23,7 +23,6 @@
#define SKY_ENGINE_CORE_CSS_STYLERULE_H_
#include "sky/engine/core/css/CSSSelectorList.h"
-#include "sky/engine/core/css/MediaList.h"
#include "sky/engine/wtf/Noncopyable.h"
#include "sky/engine/wtf/RefPtr.h"
@@ -37,10 +36,8 @@ public:
enum Type {
Unknown, // Not used.
Style,
- Media,
FontFace = 4,
Keyframes = 5,
- Keyframe, // Not used. These are internally non-rule StyleKeyframe objects.
Supports = 12,
};
@@ -48,7 +45,6 @@ public:
bool isFontFaceRule() const { return type() == FontFace; }
bool isKeyframesRule() const { return type() == Keyframes; }
- bool isMediaRule() const { return type() == Media; }
bool isStyleRule() const { return type() == Style; }
bool isSupportsRule() const { return type() == Supports; }
@@ -121,22 +117,6 @@ private:
Vector<RefPtr<StyleRuleBase> > m_childRules;
};
-class StyleRuleMedia final : public StyleRuleGroup {
- WTF_MAKE_NONCOPYABLE(StyleRuleMedia);
-public:
- static PassRefPtr<StyleRuleMedia> create(PassRefPtr<MediaQuerySet> media, Vector<RefPtr<StyleRuleBase> >& adoptRules)
- {
- return adoptRef(new StyleRuleMedia(media, adoptRules));
- }
-
- MediaQuerySet* mediaQueries() const { return m_mediaQueries.get(); }
-
-private:
- StyleRuleMedia(PassRefPtr<MediaQuerySet>, Vector<RefPtr<StyleRuleBase> >& adoptRules);
-
- RefPtr<MediaQuerySet> m_mediaQueries;
-};
-
class StyleRuleSupports final : public StyleRuleGroup {
WTF_MAKE_NONCOPYABLE(StyleRuleSupports);
public:
@@ -160,7 +140,6 @@ private:
DEFINE_TYPE_CASTS(StyleRule, StyleRuleBase, rule, rule->isStyleRule(), rule.isStyleRule());
DEFINE_STYLE_RULE_TYPE_CASTS(FontFace);
-DEFINE_STYLE_RULE_TYPE_CASTS(Media);
DEFINE_STYLE_RULE_TYPE_CASTS(Supports);
} // namespace blink
« no previous file with comments | « sky/engine/core/css/RuleSet.cpp ('k') | sky/engine/core/css/StyleRule.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698