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

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

Issue 2151083002: DevTools: explicitly differentiate ints vs doubles in the protocol bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: lcean Created 4 years, 5 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 | « no previous file | third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp » ('j') | 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 3c4a77881546a8cf6a60138b77609df07b9bd8d3..bb49a92636b36105e098ff505f056116bf5554a2 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp
@@ -53,7 +53,7 @@ void InspectorAnimationAgent::restore()
ErrorString error;
enable(&error);
double playbackRate = 1;
- m_state->getNumber(AnimationAgentState::animationAgentPlaybackRate, &playbackRate);
+ m_state->getDouble(AnimationAgentState::animationAgentPlaybackRate, &playbackRate);
setPlaybackRate(nullptr, playbackRate);
}
}
@@ -86,7 +86,7 @@ void InspectorAnimationAgent::didCommitLoadForLocalFrame(LocalFrame* frame)
m_clearedAnimations.clear();
}
double playbackRate = 1;
- m_state->getNumber(AnimationAgentState::animationAgentPlaybackRate, &playbackRate);
+ m_state->getDouble(AnimationAgentState::animationAgentPlaybackRate, &playbackRate);
setPlaybackRate(nullptr, playbackRate);
}
@@ -202,7 +202,7 @@ void InspectorAnimationAgent::setPlaybackRate(ErrorString*, double playbackRate)
{
for (LocalFrame* frame : *m_inspectedFrames)
frame->document()->timeline().setPlaybackRate(playbackRate);
- m_state->setNumber(AnimationAgentState::animationAgentPlaybackRate, playbackRate);
+ m_state->setDouble(AnimationAgentState::animationAgentPlaybackRate, playbackRate);
}
void InspectorAnimationAgent::getCurrentTime(ErrorString* errorString, const String& id, double* currentTime)
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/inspector/InspectorDOMDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698