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

Unified Diff: Source/core/css/CSSKeyframeRule.cpp

Issue 814083003: Update animation when changes in animation keyframes are detected. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + Address comments Created 5 years, 11 months 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 | « Source/core/css/CSSKeyframeRule.h ('k') | Source/core/css/CSSKeyframesRule.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSKeyframeRule.cpp
diff --git a/Source/core/css/CSSKeyframeRule.cpp b/Source/core/css/CSSKeyframeRule.cpp
index 1aeeff988d75d22090289b1c540d30372d11e158..834337bf146df786de2436a1c79d626276b1fac4 100644
--- a/Source/core/css/CSSKeyframeRule.cpp
+++ b/Source/core/css/CSSKeyframeRule.cpp
@@ -28,7 +28,8 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/css/CSSKeyframesRule.h"
-#include "core/css/PropertySetCSSStyleDeclaration.h"
+#include "core/css/CSSStyleSheet.h"
+#include "core/css/KeyframeStyleRuleCSSStyleDeclaration.h"
#include "core/dom/ExceptionCode.h"
namespace blink {
@@ -52,12 +53,14 @@ void CSSKeyframeRule::setKeyText(const String& keyText, ExceptionState& exceptio
{
if (!m_keyframe->setKeyText(keyText))
exceptionState.throwDOMException(SyntaxError, "The key '" + keyText + "' is invalid and cannot be parsed");
+
+ toCSSKeyframesRule(parentRule())->styleChanged();
}
CSSStyleDeclaration* CSSKeyframeRule::style() const
{
if (!m_propertiesCSSOMWrapper)
- m_propertiesCSSOMWrapper = StyleRuleCSSStyleDeclaration::create(m_keyframe->mutableProperties(), const_cast<CSSKeyframeRule*>(this));
+ m_propertiesCSSOMWrapper = KeyframeStyleRuleCSSStyleDeclaration::create(m_keyframe->mutableProperties(), const_cast<CSSKeyframeRule*>(this));
return m_propertiesCSSOMWrapper.get();
}
« no previous file with comments | « Source/core/css/CSSKeyframeRule.h ('k') | Source/core/css/CSSKeyframesRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698