| Index: Source/core/frame/Console.cpp
|
| diff --git a/Source/core/frame/Console.cpp b/Source/core/frame/Console.cpp
|
| index b46e8c5cb5b41c0a550adff2fc0f0532c986cab5..05485820bb198838a3614c55ba82858daf2a3b2d 100644
|
| --- a/Source/core/frame/Console.cpp
|
| +++ b/Source/core/frame/Console.cpp
|
| @@ -63,17 +63,12 @@ ExecutionContext* Console::context()
|
| return m_frame->document();
|
| }
|
|
|
| -void Console::reportMessageToClient(MessageLevel level, const String& message, PassRefPtrWillBeRawPtr<ScriptCallStack> callStack)
|
| +void Console::reportMessageToConsole(PassRefPtr<ConsoleMessage> consoleMessage)
|
| {
|
| - if (!m_frame || !m_frame->host() || !callStack.get())
|
| + if (!m_frame)
|
| return;
|
|
|
| - String stackTrace;
|
| - if (m_frame->chromeClient().shouldReportDetailedMessageForSource(callStack->at(0).sourceURL())) {
|
| - RefPtrWillBeRawPtr<ScriptCallStack> fullStack = createScriptCallStack(ScriptCallStack::maxCallStackSizeToCapture);
|
| - stackTrace = FrameConsole::formatStackTraceString(message, fullStack);
|
| - }
|
| - m_frame->chromeClient().addMessageToConsole(m_frame, ConsoleAPIMessageSource, level, message, callStack->at(0).lineNumber(), callStack->at(0).sourceURL(), stackTrace);
|
| + m_frame->console().addMessage(consoleMessage);
|
| }
|
|
|
| PassRefPtrWillBeRawPtr<MemoryInfo> Console::memory() const
|
|
|