Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/svg/SVGUseElement.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: Remove invalid assert. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/svg/SVGUseElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
index 01ac2abe3265f32799e1240e224e8d710abfcdcc..00979bb66d00ba10c89d55d30ad704800dca6153 100644
--- a/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGUseElement.cpp
@@ -729,6 +729,7 @@ void SVGUseElement::transferUseAttributesToReplacedElement(SVGElement* from, SVG
to->removeAttribute(SVGNames::yAttr);
to->removeAttribute(SVGNames::widthAttr);
to->removeAttribute(SVGNames::heightAttr);
+ to->removeAttribute(SVGNames::hrefAttr);
to->removeAttribute(XLinkNames::hrefAttr);
}

Powered by Google App Engine