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

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

Issue 2738233002: Fold SVGDocumentExtensions::reportError into only user (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b2a5fb79897d8b5d2b9a94abed7aa0ba5cdc9830..dd0aac5f7c93c98152ba4de882f50508160d07cb 100644
--- a/third_party/WebKit/Source/core/svg/SVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGElement.cpp
@@ -41,6 +41,7 @@
#include "core/events/Event.h"
#include "core/frame/Settings.h"
#include "core/html/HTMLElement.h"
+#include "core/inspector/ConsoleMessage.h"
#include "core/layout/LayoutObject.h"
#include "core/layout/svg/LayoutSVGResourceContainer.h"
#include "core/svg/SVGDocumentExtensions.h"
@@ -157,8 +158,9 @@ void SVGElement::reportAttributeParsingError(SVGParsingError error,
// Don't report any errors on attribute removal.
if (value.isNull())
return;
- document().accessSVGExtensions().reportError(
- error.format(tagName(), name, value));
+ document().addConsoleMessage(
+ ConsoleMessage::create(RenderingMessageSource, ErrorMessageLevel,
+ "Error: " + error.format(tagName(), name, value)));
}
String SVGElement::title() const {
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGDocumentExtensions.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698