| OLD | NEW |
| 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 4749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4760 { | 4760 { |
| 4761 if (!m_scriptedAnimationController) { | 4761 if (!m_scriptedAnimationController) { |
| 4762 m_scriptedAnimationController = ScriptedAnimationController::create(this
); | 4762 m_scriptedAnimationController = ScriptedAnimationController::create(this
); |
| 4763 // We need to make sure that we don't start up the animation controller
on a background tab, for example. | 4763 // We need to make sure that we don't start up the animation controller
on a background tab, for example. |
| 4764 if (!page()) | 4764 if (!page()) |
| 4765 m_scriptedAnimationController->suspend(); | 4765 m_scriptedAnimationController->suspend(); |
| 4766 } | 4766 } |
| 4767 return *m_scriptedAnimationController; | 4767 return *m_scriptedAnimationController; |
| 4768 } | 4768 } |
| 4769 | 4769 |
| 4770 int Document::requestAnimationFrame(PassRefPtr<RequestAnimationFrameCallback> ca
llback) | 4770 int Document::requestAnimationFrame(PassOwnPtr<RequestAnimationFrameCallback> ca
llback) |
| 4771 { | 4771 { |
| 4772 return ensureScriptedAnimationController().registerCallback(callback); | 4772 return ensureScriptedAnimationController().registerCallback(callback); |
| 4773 } | 4773 } |
| 4774 | 4774 |
| 4775 void Document::cancelAnimationFrame(int id) | 4775 void Document::cancelAnimationFrame(int id) |
| 4776 { | 4776 { |
| 4777 if (!m_scriptedAnimationController) | 4777 if (!m_scriptedAnimationController) |
| 4778 return; | 4778 return; |
| 4779 m_scriptedAnimationController->cancelCallback(id); | 4779 m_scriptedAnimationController->cancelCallback(id); |
| 4780 } | 4780 } |
| (...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5217 } | 5217 } |
| 5218 | 5218 |
| 5219 FastTextAutosizer* Document::fastTextAutosizer() | 5219 FastTextAutosizer* Document::fastTextAutosizer() |
| 5220 { | 5220 { |
| 5221 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable
d()) | 5221 if (!m_fastTextAutosizer && RuntimeEnabledFeatures::fastTextAutosizingEnable
d()) |
| 5222 m_fastTextAutosizer = FastTextAutosizer::create(this); | 5222 m_fastTextAutosizer = FastTextAutosizer::create(this); |
| 5223 return m_fastTextAutosizer.get(); | 5223 return m_fastTextAutosizer.get(); |
| 5224 } | 5224 } |
| 5225 | 5225 |
| 5226 } // namespace WebCore | 5226 } // namespace WebCore |
| OLD | NEW |