| Index: third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp b/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
|
| index 6adbb08deeed12da90073a142646ba40adaaef21..1a2332715292c86c37cd2e59f0740bcefc81f794 100644
|
| --- a/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
|
| @@ -29,6 +29,7 @@
|
| #include "core/dom/VisitedLinkState.h"
|
|
|
| #include "core/HTMLNames.h"
|
| +#include "core/SVGNames.h"
|
| #include "core/XLinkNames.h"
|
| #include "core/dom/ElementTraversal.h"
|
| #include "core/html/HTMLAnchorElement.h"
|
| @@ -42,6 +43,8 @@ static inline const AtomicString& linkAttribute(const Element& element)
|
| if (element.isHTMLElement())
|
| return element.fastGetAttribute(HTMLNames::hrefAttr);
|
| ASSERT(element.isSVGElement());
|
| + if (element.hasAttribute(SVGNames::hrefAttr))
|
| + return element.getAttribute(SVGNames::hrefAttr);
|
| return element.getAttribute(XLinkNames::hrefAttr);
|
| }
|
|
|
|
|