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

Unified Diff: sky/engine/core/css/StyleKeyframe.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/RuleSet.cpp ('k') | sky/engine/core/css/StyleKeyframe.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StyleKeyframe.h
diff --git a/sky/engine/core/css/CSSKeyframeRule.h b/sky/engine/core/css/StyleKeyframe.h
similarity index 71%
rename from sky/engine/core/css/CSSKeyframeRule.h
rename to sky/engine/core/css/StyleKeyframe.h
index 19c192c70c826d16bbf43e48cd8bb54712b3dc83..7d6dc0165acb33e4c6d55c6034efe4826c73832c 100644
--- a/sky/engine/core/css/CSSKeyframeRule.h
+++ b/sky/engine/core/css/StyleKeyframe.h
@@ -23,19 +23,21 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SKY_ENGINE_CORE_CSS_CSSKEYFRAMERULE_H_
-#define SKY_ENGINE_CORE_CSS_CSSKEYFRAMERULE_H_
+#ifndef SKY_ENGINE_CORE_CSS_STYLEKEYFRAME_H_
+#define SKY_ENGINE_CORE_CSS_STYLEKEYFRAME_H_
-#include "sky/engine/core/css/CSSRule.h"
+#include "sky/engine/wtf/Forward.h"
+#include "sky/engine/wtf/OwnPtr.h"
+#include "sky/engine/wtf/RefCounted.h"
+#include "sky/engine/wtf/Vector.h"
+#include "sky/engine/wtf/text/WTFString.h"
namespace blink {
class CSSKeyframesRule;
class CSSParserValueList;
-class CSSStyleDeclaration;
class MutableStylePropertySet;
class StylePropertySet;
-class StyleRuleCSSStyleDeclaration;
class StyleKeyframe final : public RefCounted<StyleKeyframe> {
WTF_MAKE_FAST_ALLOCATED;
@@ -72,30 +74,6 @@ private:
mutable OwnPtr<Vector<double> > m_keys;
};
-class CSSKeyframeRule final : public CSSRule {
-public:
- virtual ~CSSKeyframeRule();
-
- virtual CSSRule::Type type() const override { return KEYFRAME_RULE; }
- virtual String cssText() const override { return m_keyframe->cssText(); }
- virtual void reattach(StyleRuleBase*) override;
-
- String keyText() const { return m_keyframe->keyText(); }
- void setKeyText(const String& s) { m_keyframe->setKeyText(s); }
-
- CSSStyleDeclaration* style() const;
-
-private:
- CSSKeyframeRule(StyleKeyframe*, CSSKeyframesRule* parent);
-
- RefPtr<StyleKeyframe> m_keyframe;
- mutable RefPtr<StyleRuleCSSStyleDeclaration> m_propertiesCSSOMWrapper;
-
- friend class CSSKeyframesRule;
-};
-
-DEFINE_CSS_RULE_TYPE_CASTS(CSSKeyframeRule, KEYFRAME_RULE);
-
} // namespace blink
-#endif // SKY_ENGINE_CORE_CSS_CSSKEYFRAMERULE_H_
+#endif // SKY_ENGINE_CORE_CSS_STYLEKEYFRAME_H_
« no previous file with comments | « sky/engine/core/css/RuleSet.cpp ('k') | sky/engine/core/css/StyleKeyframe.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698