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

Side by Side Diff: Source/core/dom/Document.cpp

Issue 369793003: Make the web-animations engine use the passed in blink::WebFrameTime values. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch to run on try bots. Created 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 5183 matching lines...) Expand 10 before | Expand all | Expand 10 after
5194 return ensureScriptedAnimationController().registerCallback(callback); 5194 return ensureScriptedAnimationController().registerCallback(callback);
5195 } 5195 }
5196 5196
5197 void Document::cancelAnimationFrame(int id) 5197 void Document::cancelAnimationFrame(int id)
5198 { 5198 {
5199 if (!m_scriptedAnimationController) 5199 if (!m_scriptedAnimationController)
5200 return; 5200 return;
5201 m_scriptedAnimationController->cancelCallback(id); 5201 m_scriptedAnimationController->cancelCallback(id);
5202 } 5202 }
5203 5203
5204 void Document::serviceScriptedAnimations(double monotonicAnimationStartTime) 5204 void Document::serviceScriptedAnimations(blink::WebFrameTime frameTime)
5205 { 5205 {
5206 if (!m_scriptedAnimationController) 5206 if (!m_scriptedAnimationController)
5207 return; 5207 return;
5208 m_scriptedAnimationController->serviceScriptedAnimations(monotonicAnimationS tartTime); 5208 m_scriptedAnimationController->serviceScriptedAnimations(frameTime);
5209 } 5209 }
5210 5210
5211 PassRefPtrWillBeRawPtr<Touch> Document::createTouch(LocalDOMWindow* window, Even tTarget* target, int identifier, double pageX, double pageY, double screenX, dou ble screenY, double radiusX, double radiusY, float rotationAngle, float force) c onst 5211 PassRefPtrWillBeRawPtr<Touch> Document::createTouch(LocalDOMWindow* window, Even tTarget* target, int identifier, double pageX, double pageY, double screenX, dou ble screenY, double radiusX, double radiusY, float rotationAngle, float force) c onst
5212 { 5212 {
5213 // Match behavior from when these types were integers, and avoid surprises f rom someone explicitly 5213 // Match behavior from when these types were integers, and avoid surprises f rom someone explicitly
5214 // passing Infinity/NaN. 5214 // passing Infinity/NaN.
5215 if (!std::isfinite(pageX)) 5215 if (!std::isfinite(pageX))
5216 pageX = 0; 5216 pageX = 0;
5217 if (!std::isfinite(pageY)) 5217 if (!std::isfinite(pageY))
5218 pageY = 0; 5218 pageY = 0;
(...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after
5817 visitor->trace(m_compositorPendingAnimations); 5817 visitor->trace(m_compositorPendingAnimations);
5818 visitor->trace(m_contextDocument); 5818 visitor->trace(m_contextDocument);
5819 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5819 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5820 DocumentSupplementable::trace(visitor); 5820 DocumentSupplementable::trace(visitor);
5821 TreeScope::trace(visitor); 5821 TreeScope::trace(visitor);
5822 ContainerNode::trace(visitor); 5822 ContainerNode::trace(visitor);
5823 ExecutionContext::trace(visitor); 5823 ExecutionContext::trace(visitor);
5824 } 5824 }
5825 5825
5826 } // namespace WebCore 5826 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698