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

Unified Diff: sky/engine/core/inspector/ConsoleMessage.cpp

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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 | « sky/engine/core/inspector/ConsoleMessage.h ('k') | sky/engine/core/inspector/ConsoleMessageStorage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/inspector/ConsoleMessage.cpp
diff --git a/sky/engine/core/inspector/ConsoleMessage.cpp b/sky/engine/core/inspector/ConsoleMessage.cpp
index c69ebd8a22448afc58327ae705324abfd78ee58d..198a34a40aafd4e00332ab2f4d101cf254637743 100644
--- a/sky/engine/core/inspector/ConsoleMessage.cpp
+++ b/sky/engine/core/inspector/ConsoleMessage.cpp
@@ -5,9 +5,6 @@
#include "sky/engine/config.h"
#include "sky/engine/core/inspector/ConsoleMessage.h"
-#include "sky/engine/bindings/core/v8/ScriptCallStackFactory.h"
-#include "sky/engine/bindings/core/v8/ScriptValue.h"
-#include "sky/engine/core/inspector/ScriptArguments.h"
#include "sky/engine/wtf/CurrentTime.h"
#include "sky/engine/wtf/PassOwnPtr.h"
@@ -76,44 +73,6 @@ void ConsoleMessage::setLineNumber(unsigned lineNumber)
m_lineNumber = lineNumber;
}
-PassRefPtr<ScriptCallStack> ConsoleMessage::callStack() const
-{
- return m_callStack;
-}
-
-void ConsoleMessage::setCallStack(PassRefPtr<ScriptCallStack> callStack)
-{
- m_callStack = callStack;
-}
-
-ScriptState* ConsoleMessage::scriptState() const
-{
- if (m_scriptState)
- return m_scriptState->get();
- return nullptr;
-}
-
-void ConsoleMessage::setScriptState(ScriptState* scriptState)
-{
- if (m_scriptState)
- m_scriptState->clear();
-
- if (scriptState)
- m_scriptState = adoptPtr(new ScriptStateProtectingContext(scriptState));
- else
- m_scriptState.clear();
-}
-
-PassRefPtr<ScriptArguments> ConsoleMessage::scriptArguments() const
-{
- return m_scriptArguments;
-}
-
-void ConsoleMessage::setScriptArguments(PassRefPtr<ScriptArguments> scriptArguments)
-{
- m_scriptArguments = scriptArguments;
-}
-
unsigned long ConsoleMessage::requestIdentifier() const
{
return m_requestIdentifier;
@@ -154,44 +113,4 @@ unsigned ConsoleMessage::columnNumber() const
return m_columnNumber;
}
-void ConsoleMessage::frameWindowDiscarded(LocalDOMWindow* window)
-{
- if (scriptState() && scriptState()->domWindow() == window)
- setScriptState(nullptr);
-
- if (!m_scriptArguments)
- return;
- if (m_scriptArguments->scriptState()->domWindow() != window)
- return;
- if (!m_message)
- m_message = "<message collected>";
- m_scriptArguments.clear();
-}
-
-unsigned ConsoleMessage::argumentCount()
-{
- if (m_scriptArguments)
- return m_scriptArguments->argumentCount();
- return 0;
-}
-
-void ConsoleMessage::collectCallStack()
-{
- if (m_type == EndGroupMessageType)
- return;
-
- if (!m_callStack || m_source == ConsoleAPIMessageSource)
- m_callStack = createScriptCallStackForConsole(ScriptCallStack::maxCallStackSizeToCapture, true);
-
- if (m_callStack && m_callStack->size() && !m_scriptId) {
- const ScriptCallFrame& frame = m_callStack->at(0);
- m_url = frame.sourceURL();
- m_lineNumber = frame.lineNumber();
- m_columnNumber = frame.columnNumber();
- return;
- }
-
- m_callStack.clear();
-}
-
} // namespace blink
« no previous file with comments | « sky/engine/core/inspector/ConsoleMessage.h ('k') | sky/engine/core/inspector/ConsoleMessageStorage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698