Chromium Code Reviews

Unified Diff: Source/core/dom/Element.cpp

Issue 1000413003: Clear need for animation style for forced styleForElement. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« Source/core/dom/Document.cpp ('K') | « Source/core/dom/Element.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 2607f8068404cfcac097b193fdb630258c627a04..18133ac0d767b5ce1804f7f8efeaedc552a7475d 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -3368,6 +3368,14 @@ bool Element::supportsStyleSharing() const
return true;
}
+void Element::clearAnimationStyleChange()
+{
+ if (!hasRareData())
+ return;
+ if (ElementAnimations* elementAnimations = elementRareData()->elementAnimations())
dstockwell 2015/03/18 11:05:54 there's an elementAnimations() getter on this
rune 2015/03/18 14:53:03 Done.
+ elementAnimations->setAnimationStyleChange(false);
+}
+
DEFINE_TRACE(Element)
{
#if ENABLE(OILPAN)
« Source/core/dom/Document.cpp ('K') | « Source/core/dom/Element.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine