| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 #include "core/dom/DocumentLifecycleNotifier.h" | 67 #include "core/dom/DocumentLifecycleNotifier.h" |
| 68 #include "core/dom/DocumentLifecycleObserver.h" | 68 #include "core/dom/DocumentLifecycleObserver.h" |
| 69 #include "core/dom/DocumentMarkerController.h" | 69 #include "core/dom/DocumentMarkerController.h" |
| 70 #include "core/dom/DocumentSharedObjectPool.h" | 70 #include "core/dom/DocumentSharedObjectPool.h" |
| 71 #include "core/dom/DocumentType.h" | 71 #include "core/dom/DocumentType.h" |
| 72 #include "core/dom/Element.h" | 72 #include "core/dom/Element.h" |
| 73 #include "core/dom/ElementTraversal.h" | 73 #include "core/dom/ElementTraversal.h" |
| 74 #include "core/dom/ExceptionCode.h" | 74 #include "core/dom/ExceptionCode.h" |
| 75 #include "core/dom/ExecutionContextTask.h" | 75 #include "core/dom/ExecutionContextTask.h" |
| 76 #include "core/dom/MainThreadTaskRunner.h" | 76 #include "core/dom/MainThreadTaskRunner.h" |
| 77 #include "core/dom/MutationObserver.h" |
| 77 #include "core/dom/NamedFlowCollection.h" | 78 #include "core/dom/NamedFlowCollection.h" |
| 78 #include "core/dom/NodeChildRemovalTracker.h" | 79 #include "core/dom/NodeChildRemovalTracker.h" |
| 79 #include "core/dom/NodeFilter.h" | 80 #include "core/dom/NodeFilter.h" |
| 80 #include "core/dom/NodeIterator.h" | 81 #include "core/dom/NodeIterator.h" |
| 81 #include "core/dom/NodeRareData.h" | 82 #include "core/dom/NodeRareData.h" |
| 82 #include "core/dom/NodeRenderStyle.h" | 83 #include "core/dom/NodeRenderStyle.h" |
| 83 #include "core/dom/NodeRenderingTraversal.h" | 84 #include "core/dom/NodeRenderingTraversal.h" |
| 84 #include "core/dom/NodeTraversal.h" | 85 #include "core/dom/NodeTraversal.h" |
| 85 #include "core/dom/NodeWithIndex.h" | 86 #include "core/dom/NodeWithIndex.h" |
| 86 #include "core/dom/PostAttachCallbacks.h" | 87 #include "core/dom/PostAttachCallbacks.h" |
| (...skipping 4714 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4801 } | 4802 } |
| 4802 | 4803 |
| 4803 void Document::tasksWereResumed() | 4804 void Document::tasksWereResumed() |
| 4804 { | 4805 { |
| 4805 scriptRunner()->resume(); | 4806 scriptRunner()->resume(); |
| 4806 | 4807 |
| 4807 if (m_parser) | 4808 if (m_parser) |
| 4808 m_parser->resumeScheduledTasks(); | 4809 m_parser->resumeScheduledTasks(); |
| 4809 if (m_scriptedAnimationController) | 4810 if (m_scriptedAnimationController) |
| 4810 m_scriptedAnimationController->resume(); | 4811 m_scriptedAnimationController->resume(); |
| 4812 |
| 4813 MutationObserver::resumeSuspendedObservers(); |
| 4811 } | 4814 } |
| 4812 | 4815 |
| 4813 // FIXME: suspendScheduledTasks(), resumeScheduledTasks(), tasksNeedSuspension() | 4816 // FIXME: suspendScheduledTasks(), resumeScheduledTasks(), tasksNeedSuspension() |
| 4814 // should be moved to DOMWindow once it inherits ExecutionContext | 4817 // should be moved to DOMWindow once it inherits ExecutionContext |
| 4815 void Document::suspendScheduledTasks() | 4818 void Document::suspendScheduledTasks() |
| 4816 { | 4819 { |
| 4817 ExecutionContext::suspendScheduledTasks(); | 4820 ExecutionContext::suspendScheduledTasks(); |
| 4818 m_taskRunner->suspend(); | 4821 m_taskRunner->suspend(); |
| 4819 } | 4822 } |
| 4820 | 4823 |
| (...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5378 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) | 5381 if (!page->focusController().isActive() || !page->focusController().isFocuse
d()) |
| 5379 return false; | 5382 return false; |
| 5380 if (Frame* focusedFrame = page->focusController().focusedFrame()) { | 5383 if (Frame* focusedFrame = page->focusController().focusedFrame()) { |
| 5381 if (focusedFrame->tree().isDescendantOf(frame())) | 5384 if (focusedFrame->tree().isDescendantOf(frame())) |
| 5382 return true; | 5385 return true; |
| 5383 } | 5386 } |
| 5384 return false; | 5387 return false; |
| 5385 } | 5388 } |
| 5386 | 5389 |
| 5387 } // namespace WebCore | 5390 } // namespace WebCore |
| OLD | NEW |