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

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: Review issue: removed constness Created 5 years, 9 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/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..13cefbed14b9c15855b29fdcdc9c874819db3201 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -1731,10 +1731,20 @@ void Element::setAnimationStyleChange(bool animationStyleChange)
{
if (animationStyleChange && document().inStyleRecalc())
return;
+ if (!hasRareData())
+ return;
if (ElementAnimations* elementAnimations = elementRareData()->elementAnimations())
elementAnimations->setAnimationStyleChange(animationStyleChange);
}
+void Element::clearAnimationStyleChange()
+{
+ if (!hasRareData())
+ return;
+ if (ElementAnimations* elementAnimations = elementRareData()->elementAnimations())
+ elementAnimations->setAnimationStyleChange(false);
+}
+
void Element::setNeedsAnimationStyleRecalc()
{
if (styleChangeType() != NoStyleChange)
« no previous file with comments | « Source/core/dom/Element.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698