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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp

Issue 2379863003: Implement AnimationEffectTimingReadOnly interface (Closed)
Patch Set: Response to review, update formatting of new files Created 4 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 | « third_party/WebKit/Source/core/core_idl_files.gni ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
index b754a05d09eca94f5fd8645507941b82d1111e4e..03d1ff960a67b0077cbcc26c4e012ec14a835933 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
@@ -382,12 +382,13 @@ void InspectorAnimationAgent::setTiming(ErrorString* errorString,
newFrames[1]->setOffset(delay / (delay + duration));
model->setFrames(newFrames);
- AnimationEffectTiming* timing = animation->effect()->timing();
+ AnimationEffectTiming* timing = effect->timing();
UnrestrictedDoubleOrString unrestrictedDuration;
unrestrictedDuration.setUnrestrictedDouble(duration + delay);
timing->setDuration(unrestrictedDuration, exceptionState);
} else {
- AnimationEffectTiming* timing = animation->effect()->timing();
+ AnimationEffectTiming* timing =
+ toAnimationEffectTiming(animation->effect()->timing());
UnrestrictedDoubleOrString unrestrictedDuration;
unrestrictedDuration.setUnrestrictedDouble(duration);
timing->setDuration(unrestrictedDuration, exceptionState);
« no previous file with comments | « third_party/WebKit/Source/core/core_idl_files.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698