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

Unified Diff: Source/core/animation/css/CSSAnimations.cpp

Issue 664993002: Devtools Animations: Display keyframes for CSS Animations in inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review changes Created 6 years, 2 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/animation/css/CSSAnimations.h ('k') | Source/core/inspector/InspectorAnimationAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/css/CSSAnimations.cpp
diff --git a/Source/core/animation/css/CSSAnimations.cpp b/Source/core/animation/css/CSSAnimations.cpp
index b6cc779f7bbb1f1543a3a859fcd49d86ba18ef3f..fbfb34291231fc17e166da3adf19ac5c171b27a3 100644
--- a/Source/core/animation/css/CSSAnimations.cpp
+++ b/Source/core/animation/css/CSSAnimations.cpp
@@ -222,6 +222,15 @@ CSSAnimations::CSSAnimations()
{
}
+const AtomicString CSSAnimations::getAnimationNameForInspector(const AnimationPlayer& player)
+{
+ for (const auto& it : m_animations) {
+ if (it.value->sequenceNumber() == player.sequenceNumber())
+ return it.key;
+ }
+ return nullAtom;
+}
+
PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> CSSAnimations::calculateUpdate(const Element* animatingElement, Element& element, const RenderStyle& style, RenderStyle* parentStyle, StyleResolver* resolver)
{
OwnPtrWillBeRawPtr<CSSAnimationUpdate> update = adoptPtrWillBeNoop(new CSSAnimationUpdate());
« no previous file with comments | « Source/core/animation/css/CSSAnimations.h ('k') | Source/core/inspector/InspectorAnimationAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698