| 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 5726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5737 m_taskRunner->suspend(); | 5737 m_taskRunner->suspend(); |
| 5738 } | 5738 } |
| 5739 | 5739 |
| 5740 void Document::resumeScheduledTasks() { | 5740 void Document::resumeScheduledTasks() { |
| 5741 ExecutionContext::resumeScheduledTasks(); | 5741 ExecutionContext::resumeScheduledTasks(); |
| 5742 m_taskRunner->resume(); | 5742 m_taskRunner->resume(); |
| 5743 } | 5743 } |
| 5744 | 5744 |
| 5745 bool Document::tasksNeedSuspension() { | 5745 bool Document::tasksNeedSuspension() { |
| 5746 Page* page = this->page(); | 5746 Page* page = this->page(); |
| 5747 return page && page->defersLoading(); | 5747 return page && page->suspended(); |
| 5748 } | 5748 } |
| 5749 | 5749 |
| 5750 void Document::addToTopLayer(Element* element, const Element* before) { | 5750 void Document::addToTopLayer(Element* element, const Element* before) { |
| 5751 if (element->isInTopLayer()) | 5751 if (element->isInTopLayer()) |
| 5752 return; | 5752 return; |
| 5753 | 5753 |
| 5754 DCHECK(!m_topLayerElements.contains(element)); | 5754 DCHECK(!m_topLayerElements.contains(element)); |
| 5755 DCHECK(!before || m_topLayerElements.contains(before)); | 5755 DCHECK(!before || m_topLayerElements.contains(before)); |
| 5756 if (before) { | 5756 if (before) { |
| 5757 size_t beforePosition = m_topLayerElements.find(before); | 5757 size_t beforePosition = m_topLayerElements.find(before); |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6542 } | 6542 } |
| 6543 | 6543 |
| 6544 void showLiveDocumentInstances() { | 6544 void showLiveDocumentInstances() { |
| 6545 WeakDocumentSet& set = liveDocumentSet(); | 6545 WeakDocumentSet& set = liveDocumentSet(); |
| 6546 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); | 6546 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); |
| 6547 for (Document* document : set) | 6547 for (Document* document : set) |
| 6548 fprintf(stderr, "- Document %p URL: %s\n", document, | 6548 fprintf(stderr, "- Document %p URL: %s\n", document, |
| 6549 document->url().getString().utf8().data()); | 6549 document->url().getString().utf8().data()); |
| 6550 } | 6550 } |
| 6551 #endif | 6551 #endif |
| OLD | NEW |