| Index: third_party/WebKit/Source/core/html/imports/LinkImport.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/imports/LinkImport.cpp b/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
|
| index 82609c7969feb8457fdea89591f172d3a571c506..ca8fcb4f0c40e9dea10491779b67252d6dc2afd3 100644
|
| --- a/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
|
| +++ b/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
|
| @@ -73,8 +73,10 @@ void LinkImport::process()
|
| return;
|
|
|
| if (!m_owner->document().importsController()) {
|
| - ASSERT(m_owner->document().frame()); // The document should be the master.
|
| - HTMLImportsController::provideTo(m_owner->document());
|
| + // The document should be the master.
|
| + Document& master = m_owner->document();
|
| + ASSERT(master.frame());
|
| + master.setImportsController(HTMLImportsController::create(master));
|
| }
|
|
|
| LinkRequestBuilder builder(m_owner);
|
|
|