| Index: Source/core/html/HTMLLinkElement.cpp
|
| diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp
|
| index 4133430de7a4392f05fbb38ca441b7d5ccec9d20..d0b7baf57dbcfab5c833a3d18bdb01a1261061c9 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));
|
|
|