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

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

Issue 110123005: Web Animations CSS: Record if style recalc is for animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Ignore new interrupted immediately test when testing legacy animations engine Created 7 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 | « Source/core/dom/Node.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/Node.cpp
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp
index 3d9779de4eb41f7976fa92805f967a08902fd613..732655e8f2eede7a2e3e5bd54ad32bbe9644484f 100644
--- a/Source/core/dom/Node.cpp
+++ b/Source/core/dom/Node.cpp
@@ -790,6 +790,18 @@ void Node::setNeedsStyleRecalc(StyleChangeType changeType, StyleChangeSource sou
if (existingChangeType == NoStyleChange)
markAncestorsWithChildNeedsStyleRecalc();
+
+ if (isElementNode() && hasRareData())
+ toElement(*this).setAnimationStyleChange(false);
+}
+
+void Node::clearNeedsStyleRecalc()
+{
+ m_nodeFlags &= ~StyleChangeMask;
+ clearFlag(NotifyRendererWithIdenticalStyles);
+
+ if (isElementNode() && hasRareData())
+ toElement(*this).setAnimationStyleChange(false);
}
bool Node::inActiveDocument() const
« no previous file with comments | « Source/core/dom/Node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698