| Index: third_party/WebKit/Source/core/svg/SVGURIReference.cpp
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGURIReference.cpp b/third_party/WebKit/Source/core/svg/SVGURIReference.cpp
|
| index 1f22221c0edf1d77c8640d4d86e77959bdf5268c..941d9f418491669af8856ede28ccf66fbc08783c 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGURIReference.cpp
|
| +++ b/third_party/WebKit/Source/core/svg/SVGURIReference.cpp
|
| @@ -21,17 +21,16 @@
|
| #include "core/svg/SVGURIReference.h"
|
|
|
| #include "core/XLinkNames.h"
|
| -#include "core/html/parser/HTMLParserIdioms.h"
|
| #include "core/svg/SVGElement.h"
|
| #include "platform/weborigin/KURL.h"
|
|
|
| namespace blink {
|
|
|
| SVGURIReference::SVGURIReference(SVGElement* element)
|
| - : m_href(SVGAnimatedHref::create(element))
|
| + : m_href(SVGAnimatedString::create(element, XLinkNames::hrefAttr, SVGString::create()))
|
| {
|
| ASSERT(element);
|
| - m_href->addToPropertyMap(element);
|
| + element->addToPropertyMap(m_href);
|
| }
|
|
|
| DEFINE_TRACE(SVGURIReference)
|
| @@ -41,19 +40,7 @@
|
|
|
| bool SVGURIReference::isKnownAttribute(const QualifiedName& attrName)
|
| {
|
| - return SVGAnimatedHref::isKnownAttribute(attrName);
|
| -}
|
| -
|
| -const AtomicString& SVGURIReference::legacyHrefString(const SVGElement& element)
|
| -{
|
| - if (element.hasAttribute(SVGNames::hrefAttr))
|
| - return element.getAttribute(SVGNames::hrefAttr);
|
| - return element.getAttribute(XLinkNames::hrefAttr);
|
| -}
|
| -
|
| -KURL SVGURIReference::legacyHrefURL(const Document& document) const
|
| -{
|
| - return document.completeURL(stripLeadingAndTrailingHTMLSpaces(hrefString()));
|
| + return attrName.matches(XLinkNames::hrefAttr);
|
| }
|
|
|
| AtomicString SVGURIReference::fragmentIdentifierFromIRIString(const String& url, const TreeScope& treeScope)
|
|
|