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

Unified Diff: third_party/WebKit/Source/core/svg/SVGElement.cpp

Issue 1702643002: Don't report errors when SVG attributes are removed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: TEs 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/svg/SVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGElement.cpp
index 5a55cf203e3dec6ec8cb9bca13e283d47afc1aa5..01122159d3d2539b4032827eb33e85ec7ebcba64 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -188,6 +188,9 @@ void SVGElement::reportAttributeParsingError(SVGParsingError error, const Qualif
{
if (error == SVGParseStatus::NoError)
return;
+ // Don't report any errors on attribute removal.
+ if (value.isNull())
+ return;
document().accessSVGExtensions().reportError(error.format(tagName(), name, value));
}

Powered by Google App Engine
This is Rietveld 408576698