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 | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All |
7 * rights reserved. | 7 * rights reserved. |
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
9 * (http://www.torchmobile.com/) | 9 * (http://www.torchmobile.com/) |
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. | 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. |
(...skipping 4251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4262 return 0; | 4262 return 0; |
4263 return domWindow->getAttributeEventListener(eventType); | 4263 return domWindow->getAttributeEventListener(eventType); |
4264 } | 4264 } |
4265 | 4265 |
4266 EventQueue* Document::getEventQueue() const { | 4266 EventQueue* Document::getEventQueue() const { |
4267 if (!m_domWindow) | 4267 if (!m_domWindow) |
4268 return 0; | 4268 return 0; |
4269 return m_domWindow->getEventQueue(); | 4269 return m_domWindow->getEventQueue(); |
4270 } | 4270 } |
4271 | 4271 |
| 4272 void Document::enqueueAnimationFrameTask(std::unique_ptr<WTF::Closure> task) { |
| 4273 ensureScriptedAnimationController().enqueueTask(std::move(task)); |
| 4274 } |
| 4275 |
4272 void Document::enqueueAnimationFrameEvent(Event* event) { | 4276 void Document::enqueueAnimationFrameEvent(Event* event) { |
4273 ensureScriptedAnimationController().enqueueEvent(event); | 4277 ensureScriptedAnimationController().enqueueEvent(event); |
4274 } | 4278 } |
4275 | 4279 |
4276 void Document::enqueueUniqueAnimationFrameEvent(Event* event) { | 4280 void Document::enqueueUniqueAnimationFrameEvent(Event* event) { |
4277 ensureScriptedAnimationController().enqueuePerFrameEvent(event); | 4281 ensureScriptedAnimationController().enqueuePerFrameEvent(event); |
4278 } | 4282 } |
4279 | 4283 |
4280 void Document::enqueueScrollEventForNode(Node* target) { | 4284 void Document::enqueueScrollEventForNode(Node* target) { |
4281 // Per the W3C CSSOM View Module only scroll events fired at the document | 4285 // Per the W3C CSSOM View Module only scroll events fired at the document |
(...skipping 2260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6542 } | 6546 } |
6543 | 6547 |
6544 void showLiveDocumentInstances() { | 6548 void showLiveDocumentInstances() { |
6545 WeakDocumentSet& set = liveDocumentSet(); | 6549 WeakDocumentSet& set = liveDocumentSet(); |
6546 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6550 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
6547 for (Document* document : set) | 6551 for (Document* document : set) |
6548 fprintf(stderr, "- Document %p URL: %s\n", document, | 6552 fprintf(stderr, "- Document %p URL: %s\n", document, |
6549 document->url().getString().utf8().data()); | 6553 document->url().getString().utf8().data()); |
6550 } | 6554 } |
6551 #endif | 6555 #endif |
OLD | NEW |