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

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: 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
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..f12e3b913faa75bc2084fc6610968cbc30bf3092 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 0;
+}
+
PassOwnPtrWillBeRawPtr<CSSAnimationUpdate> CSSAnimations::calculateUpdate(const Element* animatingElement, Element& element, const RenderStyle& style, RenderStyle* parentStyle, StyleResolver* resolver)
{
OwnPtrWillBeRawPtr<CSSAnimationUpdate> update = adoptPtrWillBeNoop(new CSSAnimationUpdate());

Powered by Google App Engine
This is Rietveld 408576698