Index: Source/core/page/DOMSelection.cpp |
diff --git a/Source/core/page/DOMSelection.cpp b/Source/core/page/DOMSelection.cpp |
index 1f042da605830ce0cbbf972fcfa962b2717481f3..49ead12e1e8b65336ce055467f6fc1de56a7d4ce 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 blink { |
@@ -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 blink |