Index: Source/core/html/HTMLLinkElement.cpp |
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp |
index 199e4cf1b923d1e1b79c4d48ec1ed929c1a4382f..09d7978407ba205c56c5fc7c533bda8ad0a8d7ac 100644 |
--- a/Source/core/html/HTMLLinkElement.cpp |
+++ b/Source/core/html/HTMLLinkElement.cpp |
@@ -405,6 +405,17 @@ bool HTMLLinkElement::hasLegalLinkAttribute(const QualifiedName& name) const |
return name == hrefAttr || HTMLElement::hasLegalLinkAttribute(name); |
} |
+const QualifiedName& HTMLLinkElement::subResourceAttributeName() const |
+{ |
+ // If the link element is not css, ignore it. |
+ if (equalIgnoringCase(getAttribute(typeAttr), "text/css")) { |
+ // FIXME: Add support for extracting links of sub-resources which |
+ // are inside style-sheet such as @import, @font-face, url(), etc. |
+ return hrefAttr; |
+ } |
+ return HTMLElement::subResourceAttributeName(); |
+} |
+ |
KURL HTMLLinkElement::href() const |
{ |
return document().completeURL(getAttribute(hrefAttr)); |