diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/inspector/ScriptCallStack.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/inspector/ScriptCallStack.cpp | 27 |
1 files changed, 4 insertions, 23 deletions
diff --git a/chromium/third_party/WebKit/Source/core/inspector/ScriptCallStack.cpp b/chromium/third_party/WebKit/Source/core/inspector/ScriptCallStack.cpp index 0a23bb4fae5..641e6f36e33 100644 --- a/chromium/third_party/WebKit/Source/core/inspector/ScriptCallStack.cpp +++ b/chromium/third_party/WebKit/Source/core/inspector/ScriptCallStack.cpp @@ -34,9 +34,11 @@ namespace WebCore { -PassRefPtr<ScriptCallStack> ScriptCallStack::create(Vector<ScriptCallFrame>& frames) +DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ScriptCallStack); + +PassRefPtrWillBeRawPtr<ScriptCallStack> ScriptCallStack::create(Vector<ScriptCallFrame>& frames) { - return adoptRef(new ScriptCallStack(frames)); + return adoptRefWillBeNoop(new ScriptCallStack(frames)); } ScriptCallStack::ScriptCallStack(Vector<ScriptCallFrame>& frames) @@ -44,10 +46,6 @@ ScriptCallStack::ScriptCallStack(Vector<ScriptCallFrame>& frames) m_frames.swap(frames); } -ScriptCallStack::~ScriptCallStack() -{ -} - const ScriptCallFrame &ScriptCallStack::at(size_t index) const { ASSERT(m_frames.size() > index); @@ -59,23 +57,6 @@ size_t ScriptCallStack::size() const return m_frames.size(); } -bool ScriptCallStack::isEqual(ScriptCallStack* o) const -{ - if (!o) - return false; - - size_t frameCount = o->m_frames.size(); - if (frameCount != m_frames.size()) - return false; - - for (size_t i = 0; i < frameCount; ++i) { - if (!m_frames[i].isEqual(o->m_frames[i])) - return false; - } - - return true; -} - PassRefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > ScriptCallStack::buildInspectorArray() const { RefPtr<TypeBuilder::Array<TypeBuilder::Console::CallFrame> > frames = TypeBuilder::Array<TypeBuilder::Console::CallFrame>::create(); |