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

Unified Diff: sky/engine/core/css/StyleKeyframe.cpp

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/StyleKeyframe.h ('k') | sky/engine/core/css/StylePropertySet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/css/StyleKeyframe.cpp
diff --git a/sky/engine/core/css/CSSKeyframeRule.cpp b/sky/engine/core/css/StyleKeyframe.cpp
similarity index 82%
rename from sky/engine/core/css/CSSKeyframeRule.cpp
rename to sky/engine/core/css/StyleKeyframe.cpp
index 4e4694dfd411a93fb252abd2d5d18e671f5c11bd..78d2cfbae86497d96fa1b4b4ccbb576415fa30a2 100644
--- a/sky/engine/core/css/CSSKeyframeRule.cpp
+++ b/sky/engine/core/css/StyleKeyframe.cpp
@@ -24,13 +24,10 @@
*/
#include "sky/engine/config.h"
-#include "sky/engine/core/css/CSSKeyframeRule.h"
+#include "sky/engine/core/css/StyleKeyframe.h"
-#include "sky/engine/core/css/CSSKeyframesRule.h"
-#include "sky/engine/core/css/PropertySetCSSStyleDeclaration.h"
#include "sky/engine/core/css/StylePropertySet.h"
#include "sky/engine/core/css/parser/BisonCSSParser.h"
-#include "sky/engine/core/frame/UseCounter.h"
#include "sky/engine/wtf/text/StringBuilder.h"
namespace blink {
@@ -136,32 +133,4 @@ PassOwnPtr<Vector<double> > StyleKeyframe::createKeyList(CSSParserValueList* key
return keyVector.release();
}
-CSSKeyframeRule::CSSKeyframeRule(StyleKeyframe* keyframe, CSSKeyframesRule* parent)
- : CSSRule(0)
- , m_keyframe(keyframe)
-{
- setParentRule(parent);
-}
-
-CSSKeyframeRule::~CSSKeyframeRule()
-{
-#if !ENABLE(OILPAN)
- if (m_propertiesCSSOMWrapper)
- m_propertiesCSSOMWrapper->clearParentRule();
-#endif
-}
-
-CSSStyleDeclaration* CSSKeyframeRule::style() const
-{
- if (!m_propertiesCSSOMWrapper)
- m_propertiesCSSOMWrapper = StyleRuleCSSStyleDeclaration::create(m_keyframe->mutableProperties(), const_cast<CSSKeyframeRule*>(this));
- return m_propertiesCSSOMWrapper.get();
-}
-
-void CSSKeyframeRule::reattach(StyleRuleBase*)
-{
- // No need to reattach, the underlying data is shareable on mutation.
- ASSERT_NOT_REACHED();
-}
-
} // namespace blink
« no previous file with comments | « sky/engine/core/css/StyleKeyframe.h ('k') | sky/engine/core/css/StylePropertySet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698