diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/html/HTMLImportLoader.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/html/HTMLImportLoader.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/chromium/third_party/WebKit/Source/core/html/HTMLImportLoader.cpp b/chromium/third_party/WebKit/Source/core/html/HTMLImportLoader.cpp index 7cfbd2924ea..ef2d766d7ee 100644 --- a/chromium/third_party/WebKit/Source/core/html/HTMLImportLoader.cpp +++ b/chromium/third_party/WebKit/Source/core/html/HTMLImportLoader.cpp @@ -32,19 +32,21 @@ #include "core/html/HTMLImportLoader.h" #include "core/dom/Document.h" -#include "core/fetch/ResourceFetcher.h" #include "core/html/HTMLDocument.h" #include "core/html/HTMLImportLoaderClient.h" #include "core/loader/DocumentWriter.h" +#include "core/loader/cache/ResourceFetcher.h" #include "core/page/ContentSecurityPolicyResponseHeaders.h" namespace WebCore { -HTMLImportLoader::HTMLImportLoader(HTMLImport* parent, const KURL& url) +HTMLImportLoader::HTMLImportLoader(HTMLImport* parent, const KURL& url, const ResourcePtr<RawResource>& resource) : m_parent(parent) , m_state(StateLoading) + , m_resource(resource) , m_url(url) { + m_resource->addClient(this); } HTMLImportLoader::~HTMLImportLoader() @@ -56,12 +58,6 @@ HTMLImportLoader::~HTMLImportLoader() m_resource->removeClient(this); } -void HTMLImportLoader::setResource(const ResourcePtr<RawResource>& resource) -{ - m_resource = resource; - m_resource->addClient(this); -} - void HTMLImportLoader::responseReceived(Resource*, const ResourceResponse& response) { setState(startWritingAndParsing(response)); |