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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 , m_isViewSource(false) | 478 , m_isViewSource(false) |
479 , m_sawElementsInKnownNamespaces(false) | 479 , m_sawElementsInKnownNamespaces(false) |
480 , m_isSrcdocDocument(false) | 480 , m_isSrcdocDocument(false) |
481 , m_isMobileDocument(false) | 481 , m_isMobileDocument(false) |
482 , m_renderView(0) | 482 , m_renderView(0) |
483 , m_weakFactory(this) | 483 , m_weakFactory(this) |
484 , m_contextDocument(initializer.contextDocument()) | 484 , m_contextDocument(initializer.contextDocument()) |
485 , m_hasFullscreenElementStack(false) | 485 , m_hasFullscreenElementStack(false) |
486 , m_loadEventDelayCount(0) | 486 , m_loadEventDelayCount(0) |
487 , m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired) | 487 , m_loadEventDelayTimer(this, &Document::loadEventDelayTimerFired) |
| 488 , m_pluginLoadingTimer(this, &Document::pluginLoadingTimerFired) |
488 , m_didSetReferrerPolicy(false) | 489 , m_didSetReferrerPolicy(false) |
489 , m_referrerPolicy(ReferrerPolicyDefault) | 490 , m_referrerPolicy(ReferrerPolicyDefault) |
490 , m_directionSetOnDocumentElement(false) | 491 , m_directionSetOnDocumentElement(false) |
491 , m_writingModeSetOnDocumentElement(false) | 492 , m_writingModeSetOnDocumentElement(false) |
492 , m_writeRecursionIsTooDeep(false) | 493 , m_writeRecursionIsTooDeep(false) |
493 , m_writeRecursionDepth(0) | 494 , m_writeRecursionDepth(0) |
494 , m_lastHandledUserGestureTimestamp(0) | 495 , m_lastHandledUserGestureTimestamp(0) |
495 , m_taskRunner(MainThreadTaskRunner::create(this)) | 496 , m_taskRunner(MainThreadTaskRunner::create(this)) |
496 , m_registrationContext(initializer.registrationContext(this)) | 497 , m_registrationContext(initializer.registrationContext(this)) |
497 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) | 498 , m_elementDataCacheClearTimer(this, &Document::elementDataCacheClearTimerFi
red) |
(...skipping 4412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4910 if (frame() && !m_loadEventDelayCount && !m_loadEventDelayTimer.isActive()) | 4911 if (frame() && !m_loadEventDelayCount && !m_loadEventDelayTimer.isActive()) |
4911 m_loadEventDelayTimer.startOneShot(0); | 4912 m_loadEventDelayTimer.startOneShot(0); |
4912 } | 4913 } |
4913 | 4914 |
4914 void Document::loadEventDelayTimerFired(Timer<Document>*) | 4915 void Document::loadEventDelayTimerFired(Timer<Document>*) |
4915 { | 4916 { |
4916 if (frame()) | 4917 if (frame()) |
4917 frame()->loader().checkCompleted(); | 4918 frame()->loader().checkCompleted(); |
4918 } | 4919 } |
4919 | 4920 |
| 4921 void Document::loadPluginsSoon() |
| 4922 { |
| 4923 // FIXME: Remove this timer once we don't need to compute layout to load plu
gins. |
| 4924 if (!m_pluginLoadingTimer.isActive()) |
| 4925 m_pluginLoadingTimer.startOneShot(0); |
| 4926 } |
| 4927 |
| 4928 void Document::pluginLoadingTimerFired(Timer<Document>*) |
| 4929 { |
| 4930 updateLayout(); |
| 4931 } |
| 4932 |
4920 ScriptedAnimationController& Document::ensureScriptedAnimationController() | 4933 ScriptedAnimationController& Document::ensureScriptedAnimationController() |
4921 { | 4934 { |
4922 if (!m_scriptedAnimationController) { | 4935 if (!m_scriptedAnimationController) { |
4923 m_scriptedAnimationController = ScriptedAnimationController::create(this
); | 4936 m_scriptedAnimationController = ScriptedAnimationController::create(this
); |
4924 // We need to make sure that we don't start up the animation controller
on a background tab, for example. | 4937 // We need to make sure that we don't start up the animation controller
on a background tab, for example. |
4925 if (!page()) | 4938 if (!page()) |
4926 m_scriptedAnimationController->suspend(); | 4939 m_scriptedAnimationController->suspend(); |
4927 } | 4940 } |
4928 return *m_scriptedAnimationController; | 4941 return *m_scriptedAnimationController; |
4929 } | 4942 } |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5426 void Document::defaultEventHandler(Event* event) | 5439 void Document::defaultEventHandler(Event* event) |
5427 { | 5440 { |
5428 if (frame() && frame()->remotePlatformLayer()) { | 5441 if (frame() && frame()->remotePlatformLayer()) { |
5429 frame()->chromeClient().forwardInputEvent(this, event); | 5442 frame()->chromeClient().forwardInputEvent(this, event); |
5430 return; | 5443 return; |
5431 } | 5444 } |
5432 Node::defaultEventHandler(event); | 5445 Node::defaultEventHandler(event); |
5433 } | 5446 } |
5434 | 5447 |
5435 } // namespace WebCore | 5448 } // namespace WebCore |
OLD | NEW |