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

Unified Diff: Source/core/page/DOMSelection.cpp

Issue 376213002: DevTools: Make FrameConsole methods accept ConsoleMessage objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@scriptFailedToParse
Patch Set: Created 6 years, 5 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/page/DOMSelection.cpp
diff --git a/Source/core/page/DOMSelection.cpp b/Source/core/page/DOMSelection.cpp
index a32cc8024d2e40cbfb8ecc6ee1a9d062c6c83a99..fcf77f4c6521653f1d76c2849f028c4ec1614a08 100644
--- a/Source/core/page/DOMSelection.cpp
+++ b/Source/core/page/DOMSelection.cpp
@@ -43,6 +43,7 @@
#include "core/editing/TextIterator.h"
#include "core/editing/htmlediting.h"
#include "core/frame/LocalFrame.h"
+#include "core/inspector/ConsoleMessage.h"
#include "wtf/text/WTFString.h"
namespace WebCore {
@@ -562,7 +563,7 @@ bool DOMSelection::isValidForPosition(Node* node) const
void DOMSelection::addConsoleError(const String& message)
{
if (m_treeScope)
- m_treeScope->document().addConsoleMessage(JSMessageSource, ErrorMessageLevel, message);
+ m_treeScope->document().addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, message));
}
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698