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

Unified Diff: Source/core/css/MediaList.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
« no previous file with comments | « Source/bindings/core/v8/ScriptController.cpp ('k') | Source/core/dom/AddConsoleMessageTask.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaList.cpp
diff --git a/Source/core/css/MediaList.cpp b/Source/core/css/MediaList.cpp
index cd5aab16d3fcd98b5ebfcebd014489d9449b4f75..a231029380efe674323cca2892300d237b4ce513 100644
--- a/Source/core/css/MediaList.cpp
+++ b/Source/core/css/MediaList.cpp
@@ -29,6 +29,7 @@
#include "core/css/parser/MediaQueryParser.h"
#include "core/dom/Document.h"
#include "core/frame/LocalDOMWindow.h"
+#include "core/inspector/ConsoleMessage.h"
#include "wtf/text/StringBuilder.h"
namespace blink {
@@ -275,7 +276,7 @@ static void addResolutionWarningMessageToConsole(Document* document, const Strin
message.append(serializedExpression);
- document->addConsoleMessage(CSSMessageSource, DebugMessageLevel, message.toString());
+ document->addConsoleMessage(ConsoleMessage::create(CSSMessageSource, DebugMessageLevel, message.toString()));
}
static inline bool isResolutionMediaFeature(const String& mediaFeature)
« no previous file with comments | « Source/bindings/core/v8/ScriptController.cpp ('k') | Source/core/dom/AddConsoleMessageTask.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698