OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "bindings/core/v8/SourceLocation.h" | 5 #include "bindings/core/v8/SourceLocation.h" |
6 | 6 |
7 #include "bindings/core/v8/V8BindingMacros.h" | 7 #include "bindings/core/v8/V8BindingMacros.h" |
8 #include "bindings/core/v8/V8PerIsolateData.h" | 8 #include "bindings/core/v8/V8PerIsolateData.h" |
9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
10 #include "core/dom/ExecutionContext.h" | 10 #include "core/dom/ExecutionContext.h" |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 std::unique_ptr<SourceLocation> SourceLocation::clone() const | 163 std::unique_ptr<SourceLocation> SourceLocation::clone() const |
164 { | 164 { |
165 return wrapUnique(new SourceLocation(m_url, m_lineNumber, m_columnNumber, m_
stackTrace ? m_stackTrace->clone() : nullptr, m_scriptId)); | 165 return wrapUnique(new SourceLocation(m_url, m_lineNumber, m_columnNumber, m_
stackTrace ? m_stackTrace->clone() : nullptr, m_scriptId)); |
166 } | 166 } |
167 | 167 |
168 std::unique_ptr<SourceLocation> SourceLocation::isolatedCopy() const | 168 std::unique_ptr<SourceLocation> SourceLocation::isolatedCopy() const |
169 { | 169 { |
170 return wrapUnique(new SourceLocation(m_url.isolatedCopy(), m_lineNumber, m_c
olumnNumber, m_stackTrace ? m_stackTrace->isolatedCopy() : nullptr, m_scriptId))
; | 170 return wrapUnique(new SourceLocation(m_url.isolatedCopy(), m_lineNumber, m_c
olumnNumber, m_stackTrace ? m_stackTrace->isolatedCopy() : nullptr, m_scriptId))
; |
171 } | 171 } |
172 | 172 |
173 std::unique_ptr<protocol::Runtime::StackTrace> SourceLocation::buildInspectorObj
ect() const | 173 std::unique_ptr<protocol::Runtime::API::StackTrace> SourceLocation::buildInspect
orObject() const |
174 { | 174 { |
175 return m_stackTrace ? m_stackTrace->buildInspectorObject() : nullptr; | 175 return m_stackTrace ? m_stackTrace->buildInspectorObject() : nullptr; |
176 } | 176 } |
177 | 177 |
178 String SourceLocation::toString() const | 178 String SourceLocation::toString() const |
179 { | 179 { |
180 if (!m_stackTrace) | 180 if (!m_stackTrace) |
181 return String(); | 181 return String(); |
182 return m_stackTrace->toString(); | 182 return m_stackTrace->toString(); |
183 } | 183 } |
184 | 184 |
185 } // namespace blink | 185 } // namespace blink |
OLD | NEW |