Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2611753003: Rename blink::Page's load deferral to suspension (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 5668 matching lines...) Expand 10 before | Expand all | Expand 10 after
5679 m_taskRunner->suspend(); 5679 m_taskRunner->suspend();
5680 } 5680 }
5681 5681
5682 void Document::resumeScheduledTasks() { 5682 void Document::resumeScheduledTasks() {
5683 ExecutionContext::resumeScheduledTasks(); 5683 ExecutionContext::resumeScheduledTasks();
5684 m_taskRunner->resume(); 5684 m_taskRunner->resume();
5685 } 5685 }
5686 5686
5687 bool Document::tasksNeedSuspension() { 5687 bool Document::tasksNeedSuspension() {
5688 Page* page = this->page(); 5688 Page* page = this->page();
5689 return page && page->defersLoading(); 5689 return page && page->suspended();
5690 } 5690 }
5691 5691
5692 void Document::addToTopLayer(Element* element, const Element* before) { 5692 void Document::addToTopLayer(Element* element, const Element* before) {
5693 if (element->isInTopLayer()) 5693 if (element->isInTopLayer())
5694 return; 5694 return;
5695 5695
5696 DCHECK(!m_topLayerElements.contains(element)); 5696 DCHECK(!m_topLayerElements.contains(element));
5697 DCHECK(!before || m_topLayerElements.contains(before)); 5697 DCHECK(!before || m_topLayerElements.contains(before));
5698 if (before) { 5698 if (before) {
5699 size_t beforePosition = m_topLayerElements.find(before); 5699 size_t beforePosition = m_topLayerElements.find(before);
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
6495 } 6495 }
6496 6496
6497 void showLiveDocumentInstances() { 6497 void showLiveDocumentInstances() {
6498 WeakDocumentSet& set = liveDocumentSet(); 6498 WeakDocumentSet& set = liveDocumentSet();
6499 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6499 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6500 for (Document* document : set) 6500 for (Document* document : set)
6501 fprintf(stderr, "- Document %p URL: %s\n", document, 6501 fprintf(stderr, "- Document %p URL: %s\n", document,
6502 document->url().getString().utf8().data()); 6502 document->url().getString().utf8().data());
6503 } 6503 }
6504 #endif 6504 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/DocumentLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698