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

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

Issue 780483002: Remove the CSSOM. (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/StyleRule.cpp ('k') | sky/engine/core/css/StyleRuleKeyframes.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StyleRuleKeyframes.h
diff --git a/sky/engine/core/css/CSSKeyframesRule.h b/sky/engine/core/css/StyleRuleKeyframes.h
similarity index 63%
rename from sky/engine/core/css/CSSKeyframesRule.h
rename to sky/engine/core/css/StyleRuleKeyframes.h
index 599d124d32b3af8bc6689c680df7b621d6f078de..a7c76556a949be29cbca065eb2e44adf7e7d03c0 100644
--- a/sky/engine/core/css/CSSKeyframesRule.h
+++ b/sky/engine/core/css/StyleRuleKeyframes.h
@@ -23,19 +23,16 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SKY_ENGINE_CORE_CSS_CSSKEYFRAMESRULE_H_
-#define SKY_ENGINE_CORE_CSS_CSSKEYFRAMESRULE_H_
+#ifndef SKY_ENGINE_CORE_CSS_STYLERULEKEYFRAMES_H_
+#define SKY_ENGINE_CORE_CSS_STYLERULEKEYFRAMES_H_
-#include "sky/engine/core/css/CSSRule.h"
#include "sky/engine/core/css/StyleRule.h"
#include "sky/engine/wtf/Forward.h"
#include "sky/engine/wtf/text/AtomicString.h"
namespace blink {
-class CSSRuleList;
class StyleKeyframe;
-class CSSKeyframeRule;
class StyleRuleKeyframes final : public StyleRuleBase {
public:
@@ -70,46 +67,6 @@ private:
DEFINE_STYLE_RULE_TYPE_CASTS(Keyframes);
-class CSSKeyframesRule final : public CSSRule {
-public:
- static PassRefPtr<CSSKeyframesRule> create(StyleRuleKeyframes* rule, CSSStyleSheet* sheet)
- {
- return adoptRef(new CSSKeyframesRule(rule, sheet));
- }
-
- virtual ~CSSKeyframesRule();
-
- virtual CSSRule::Type type() const override { return KEYFRAMES_RULE; }
- virtual String cssText() const override;
- virtual void reattach(StyleRuleBase*) override;
-
- String name() const { return m_keyframesRule->name(); }
- void setName(const String&);
-
- CSSRuleList* cssRules();
-
- void insertRule(const String& rule);
- void deleteRule(const String& key);
- CSSKeyframeRule* findRule(const String& key);
-
- // For IndexedGetter and CSSRuleList.
- unsigned length() const;
- CSSKeyframeRule* item(unsigned index) const;
-
- bool isVendorPrefixed() const { return m_isPrefixed; }
- void setVendorPrefixed(bool isPrefixed) { m_isPrefixed = isPrefixed; }
-
-private:
- CSSKeyframesRule(StyleRuleKeyframes*, CSSStyleSheet* parent);
-
- RefPtr<StyleRuleKeyframes> m_keyframesRule;
- mutable Vector<RefPtr<CSSKeyframeRule> > m_childRuleCSSOMWrappers;
- mutable OwnPtr<CSSRuleList> m_ruleListCSSOMWrapper;
- bool m_isPrefixed;
-};
-
-DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframesRule, KEYFRAMES_RULE);
-
} // namespace blink
-#endif // SKY_ENGINE_CORE_CSS_CSSKEYFRAMESRULE_H_
+#endif // SKY_ENGINE_CORE_CSS_STYLERULEKEYFRAMES_H_
« no previous file with comments | « sky/engine/core/css/StyleRule.cpp ('k') | sky/engine/core/css/StyleRuleKeyframes.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698