| 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 414 , m_isMobileDocument(false) | 414 , m_isMobileDocument(false) |
| 415 , m_layoutView(0) | 415 , m_layoutView(0) |
| 416 #if !ENABLE(OILPAN) | 416 #if !ENABLE(OILPAN) |
| 417 , m_weakFactory(this) | 417 , m_weakFactory(this) |
| 418 #endif | 418 #endif |
| 419 , m_contextDocument(initializer.contextDocument()) | 419 , m_contextDocument(initializer.contextDocument()) |
| 420 , m_hasFullscreenSupplement(false) | 420 , m_hasFullscreenSupplement(false) |
| 421 , m_loadEventDelayCount(0) | 421 , m_loadEventDelayCount(0) |
| 422 , m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired) | 422 , m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired) |
| 423 , m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired) | 423 , m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired) |
| 424 , m_documentTiming(this) |
| 424 , m_writeRecursionIsTooDeep(false) | 425 , m_writeRecursionIsTooDeep(false) |
| 425 , m_writeRecursionDepth(0) | 426 , m_writeRecursionDepth(0) |
| 426 , m_taskRunner(MainThreadTaskRunner::create(this)) | 427 , m_taskRunner(MainThreadTaskRunner::create(this)) |
| 427 , m_registrationContext(initializer.registrationContext(this)) | 428 , m_registrationContext(initializer.registrationContext(this)) |
| 428 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) | 429 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) |
| 429 , m_timeline(AnimationTimeline::create(this)) | 430 , m_timeline(AnimationTimeline::create(this)) |
| 430 , m_templateDocumentHost(nullptr) | 431 , m_templateDocumentHost(nullptr) |
| 431 , m_didAssociateFormControlsTimer(this, &Document::didAssociateFormControlsT
imerFired) | 432 , m_didAssociateFormControlsTimer(this, &Document::didAssociateFormControlsT
imerFired) |
| 432 , m_hasViewportUnits(false) | 433 , m_hasViewportUnits(false) |
| 433 , m_styleRecalcElementCounter(0) | 434 , m_styleRecalcElementCounter(0) |
| (...skipping 4750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5184 { | 5185 { |
| 5185 if (!m_scriptedAnimationController) { | 5186 if (!m_scriptedAnimationController) { |
| 5186 m_scriptedAnimationController = ScriptedAnimationController::create(this
); | 5187 m_scriptedAnimationController = ScriptedAnimationController::create(this
); |
| 5187 // We need to make sure that we don't start up the animation controller
on a background tab, for example. | 5188 // We need to make sure that we don't start up the animation controller
on a background tab, for example. |
| 5188 if (!page()) | 5189 if (!page()) |
| 5189 m_scriptedAnimationController->suspend(); | 5190 m_scriptedAnimationController->suspend(); |
| 5190 } | 5191 } |
| 5191 return *m_scriptedAnimationController; | 5192 return *m_scriptedAnimationController; |
| 5192 } | 5193 } |
| 5193 | 5194 |
| 5195 void Document::onDocumentTimingChanged() const |
| 5196 { |
| 5197 if (frame()) |
| 5198 frame()->loader().client()->didChangePerformanceTiming(); |
| 5199 } |
| 5200 |
| 5194 int Document::requestAnimationFrame(FrameRequestCallback* callback) | 5201 int Document::requestAnimationFrame(FrameRequestCallback* callback) |
| 5195 { | 5202 { |
| 5196 return ensureScriptedAnimationController().registerCallback(callback); | 5203 return ensureScriptedAnimationController().registerCallback(callback); |
| 5197 } | 5204 } |
| 5198 | 5205 |
| 5199 void Document::cancelAnimationFrame(int id) | 5206 void Document::cancelAnimationFrame(int id) |
| 5200 { | 5207 { |
| 5201 if (!m_scriptedAnimationController) | 5208 if (!m_scriptedAnimationController) |
| 5202 return; | 5209 return; |
| 5203 m_scriptedAnimationController->cancelCallback(id); | 5210 m_scriptedAnimationController->cancelCallback(id); |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5772 #ifndef NDEBUG | 5779 #ifndef NDEBUG |
| 5773 using namespace blink; | 5780 using namespace blink; |
| 5774 void showLiveDocumentInstances() | 5781 void showLiveDocumentInstances() |
| 5775 { | 5782 { |
| 5776 Document::WeakDocumentSet& set = Document::liveDocumentSet(); | 5783 Document::WeakDocumentSet& set = Document::liveDocumentSet(); |
| 5777 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 5784 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 5778 for (Document* document : set) | 5785 for (Document* document : set) |
| 5779 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); | 5786 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().str
ing().utf8().data()); |
| 5780 } | 5787 } |
| 5781 #endif | 5788 #endif |
| OLD | NEW |