Commit 649943c4 authored by aandrey@chromium.org's avatar aandrey@chromium.org

DevTools: nits: collect only top call frame in InspectorConsoleAgent::consoleCount.

R=vsevik

Review URL: https://codereview.chromium.org/414013002

git-svn-id: svn://svn.chromium.org/blink/trunk@179110 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 4a1c4c41
...@@ -240,7 +240,7 @@ void InspectorConsoleAgent::consoleTimelineEnd(ExecutionContext* context, const ...@@ -240,7 +240,7 @@ void InspectorConsoleAgent::consoleTimelineEnd(ExecutionContext* context, const
void InspectorConsoleAgent::consoleCount(ScriptState* scriptState, PassRefPtrWillBeRawPtr<ScriptArguments> arguments) void InspectorConsoleAgent::consoleCount(ScriptState* scriptState, PassRefPtrWillBeRawPtr<ScriptArguments> arguments)
{ {
RefPtrWillBeRawPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(scriptState)); RefPtrWillBeRawPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(scriptState, 1));
const ScriptCallFrame& lastCaller = callStack->at(0); const ScriptCallFrame& lastCaller = callStack->at(0);
// Follow Firebug's behavior of counting with null and undefined title in // Follow Firebug's behavior of counting with null and undefined title in
// the same bucket as no argument // the same bucket as no argument
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment