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

Unified Diff: Source/core/svg/SVGDocumentExtensions.cpp

Issue 419203004: DevTools: wrapping arguments addConsoleMessage in ConsoleMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@wrap-not-all-console-args
Patch Set: Created 6 years, 4 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: Source/core/svg/SVGDocumentExtensions.cpp
diff --git a/Source/core/svg/SVGDocumentExtensions.cpp b/Source/core/svg/SVGDocumentExtensions.cpp
index ebc0dc306df651afb98619bb060aaadb0c0db38d..b563aee408629ddaba803b132b1858d2bfb369b0 100644
--- a/Source/core/svg/SVGDocumentExtensions.cpp
+++ b/Source/core/svg/SVGDocumentExtensions.cpp
@@ -24,6 +24,7 @@
#include "core/XLinkNames.h"
#include "core/dom/Document.h"
+#include "core/inspector/ConsoleMessage.h"
#include "core/rendering/RenderView.h"
#include "core/rendering/svg/SVGResourcesCache.h"
#include "core/svg/SVGElementRareData.h"
@@ -146,7 +147,7 @@ void SVGDocumentExtensions::dispatchSVGLoadEventToOutermostSVGElements()
static void reportMessage(Document* document, MessageLevel level, const String& message)
{
if (document->frame())
- document->addConsoleMessage(RenderingMessageSource, level, message);
+ document->addConsoleMessage(ConsoleMessage::create(RenderingMessageSource, level, message));
}
void SVGDocumentExtensions::reportWarning(const String& message)

Powered by Google App Engine
This is Rietveld 408576698