Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(722)

Unified Diff: third_party/WebKit/Source/core/dom/VisitedLinkState.cpp

Issue 1681553002: Add support for 'href' (w/o XLink NS) for various SVG elements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase; update comment Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..ed10d3aacb92ba0c626222468af7645ee7a2f5bf 100644
--- a/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
+++ b/third_party/WebKit/Source/core/dom/VisitedLinkState.cpp
@@ -29,9 +29,9 @@
#include "core/dom/VisitedLinkState.h"
#include "core/HTMLNames.h"
-#include "core/XLinkNames.h"
#include "core/dom/ElementTraversal.h"
#include "core/html/HTMLAnchorElement.h"
+#include "core/svg/SVGURIReference.h"
#include "public/platform/Platform.h"
namespace blink {
@@ -42,7 +42,7 @@ static inline const AtomicString& linkAttribute(const Element& element)
if (element.isHTMLElement())
return element.fastGetAttribute(HTMLNames::hrefAttr);
ASSERT(element.isSVGElement());
- return element.getAttribute(XLinkNames::hrefAttr);
+ return SVGURIReference::legacyHrefString(toSVGElement(element));
}
static inline LinkHash linkHashForElement(const Element& element, const AtomicString& attribute = AtomicString())
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/html/parser/XSSAuditor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698