Index: third_party/WebKit/Source/core/html/HTMLLinkElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp |
index 6bc0897a56d9bcfb50e61291919ab2641b6485f9..dc4c9a340fc56ba6365348eb8d97c82b4a530f75 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp |
@@ -45,6 +45,7 @@ |
#include "core/frame/csp/ContentSecurityPolicy.h" |
#include "core/html/CrossOriginAttribute.h" |
#include "core/html/LinkManifest.h" |
+#include "core/html/LinkServiceWorker.h" |
#include "core/html/imports/LinkImport.h" |
#include "core/inspector/ConsoleMessage.h" |
#include "core/loader/FrameLoader.h" |
@@ -193,6 +194,9 @@ void HTMLLinkElement::parseAttribute(const QualifiedName& name, const AtomicStri |
} else if (name == mediaAttr) { |
m_media = value.lower(); |
process(); |
+ } else if (name == scopeAttr) { |
+ m_scope = value; |
+ process(); |
} else if (name == disabledAttr) { |
UseCounter::count(document(), UseCounter::HTMLLinkElementDisabled); |
if (LinkStyle* link = linkStyle()) |
@@ -230,6 +234,8 @@ LinkResource* HTMLLinkElement::linkResourceToProcess() |
m_link = LinkImport::create(this); |
} else if (m_relAttribute.isManifest()) { |
m_link = LinkManifest::create(this); |
+ } else if (RuntimeEnabledFeatures::linkServiceworkerEnabled() && m_relAttribute.isServiceWorker()) { |
+ m_link = LinkServiceWorker::create(this); |
} else { |
Yoav Weiss
2016/03/17 11:21:13
Unrelated to this CL but we really need to clean t
Marijn Kruisselbrink
2016/03/17 19:53:34
Agreed, although it's not trivial to do so and sta
|
OwnPtrWillBeRawPtr<LinkStyle> link = LinkStyle::create(this); |
if (fastHasAttribute(disabledAttr)) { |