| Index: third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp b/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp
|
| index 41954373615573f3e859c7eb13d5c4ab2ef85269..830544c53080700dee22e3081ec3871c1fe819ea 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/SourceLocation.cpp
|
| @@ -26,13 +26,8 @@ std::unique_ptr<V8StackTrace> captureStackTrace(bool full)
|
| V8PerIsolateData* data = V8PerIsolateData::from(isolate);
|
| if (!data->threadDebugger() || !isolate->InContext())
|
| return nullptr;
|
| - size_t stackSize = full ? V8StackTrace::maxCallStackSizeToCapture : 1;
|
| - if (InspectorInstrumentation::hasFrontends()) {
|
| - if (InspectorInstrumentation::consoleAgentEnabled(currentExecutionContext(isolate)))
|
| - stackSize = V8StackTrace::maxCallStackSizeToCapture;
|
| - }
|
| ScriptForbiddenScope::AllowUserAgentScript allowScripting;
|
| - return data->threadDebugger()->debugger()->captureStackTrace(stackSize);
|
| + return data->threadDebugger()->debugger()->captureStackTrace(full);
|
| }
|
|
|
| }
|
| @@ -158,6 +153,11 @@ void SourceLocation::toTracedValue(TracedValue* value, const char* name) const
|
| value->endArray();
|
| }
|
|
|
| +std::unique_ptr<V8StackTrace> SourceLocation::cloneStackTrace() const
|
| +{
|
| + return m_stackTrace ? m_stackTrace->clone() : nullptr;
|
| +};
|
| +
|
| PassOwnPtr<SourceLocation> SourceLocation::clone() const
|
| {
|
| return adoptPtr(new SourceLocation(m_url, m_lineNumber, m_columnNumber, m_stackTrace ? m_stackTrace->clone() : nullptr, m_scriptId));
|
|
|