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

Side by Side Diff: Source/core/html/imports/HTMLImportTreeRoot.cpp

Issue 1116613003: Remove ResourceFetcher's access to a FrameFetchContext when detaching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/imports/HTMLImportLoader.cpp ('k') | Source/core/html/imports/LinkImport.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "core/html/imports/HTMLImportTreeRoot.h" 6 #include "core/html/imports/HTMLImportTreeRoot.h"
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/StyleEngine.h" 9 #include "core/dom/StyleEngine.h"
10 #include "core/frame/LocalFrame.h" 10 #include "core/frame/LocalFrame.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 if (equalIgnoringFragmentIdentifier(candidate->url(), url)) 92 if (equalIgnoringFragmentIdentifier(candidate->url(), url))
93 return candidate; 93 return candidate;
94 } 94 }
95 95
96 return nullptr; 96 return nullptr;
97 } 97 }
98 98
99 void HTMLImportTreeRoot::recalcTimerFired(Timer<HTMLImportTreeRoot>*) 99 void HTMLImportTreeRoot::recalcTimerFired(Timer<HTMLImportTreeRoot>*)
100 { 100 {
101 ASSERT(m_document); 101 ASSERT(m_document);
102 RefPtrWillBeRawPtr<Document> protect(m_document.get()); 102 RefPtrWillBeRawPtr<Document> protectDocument(m_document.get());
103 103 HTMLImport::recalcTreeState(this);
sof 2015/04/30 18:18:37 Could you explain why new recalculations cannot be
104 do {
105 m_recalcTimer.stop();
106 HTMLImport::recalcTreeState(this);
107 } while (m_recalcTimer.isActive());
108 } 104 }
109 105
110 DEFINE_TRACE(HTMLImportTreeRoot) 106 DEFINE_TRACE(HTMLImportTreeRoot)
111 { 107 {
112 visitor->trace(m_document); 108 visitor->trace(m_document);
113 visitor->trace(m_imports); 109 visitor->trace(m_imports);
114 HTMLImport::trace(visitor); 110 HTMLImport::trace(visitor);
115 } 111 }
116 112
117 } 113 }
OLDNEW
« no previous file with comments | « Source/core/html/imports/HTMLImportLoader.cpp ('k') | Source/core/html/imports/LinkImport.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698