| 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..ddda0f42078d4eca51585924cb8a0e2211ecb5cd 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLLinkElement.cpp
|
| @@ -193,6 +193,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 +233,9 @@ 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()) {
|
| + if (document().frame())
|
| + m_link = document().frame()->loader().client()->createServiceWorkerLinkResource(this);
|
| } else {
|
| OwnPtrWillBeRawPtr<LinkStyle> link = LinkStyle::create(this);
|
| if (fastHasAttribute(disabledAttr)) {
|
|
|