OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2010 Google Inc. All rights reserved. | 2 * Copyright (c) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 28 matching lines...) Expand all Loading... |
39 , m_scriptName(scriptName) | 39 , m_scriptName(scriptName) |
40 , m_lineNumber(lineNumber) | 40 , m_lineNumber(lineNumber) |
41 , m_column(column) | 41 , m_column(column) |
42 { | 42 { |
43 } | 43 } |
44 | 44 |
45 ScriptCallFrame::~ScriptCallFrame() | 45 ScriptCallFrame::~ScriptCallFrame() |
46 { | 46 { |
47 } | 47 } |
48 | 48 |
49 bool ScriptCallFrame::isEqual(const ScriptCallFrame& o) const | |
50 { | |
51 return m_functionName == o.m_functionName | |
52 && m_scriptId == o.m_scriptId | |
53 && m_scriptName == o.m_scriptName | |
54 && m_lineNumber == o.m_lineNumber; | |
55 } | |
56 | |
57 PassRefPtr<TypeBuilder::Console::CallFrame> ScriptCallFrame::buildInspectorObjec
t() const | 49 PassRefPtr<TypeBuilder::Console::CallFrame> ScriptCallFrame::buildInspectorObjec
t() const |
58 { | 50 { |
59 return TypeBuilder::Console::CallFrame::create() | 51 return TypeBuilder::Console::CallFrame::create() |
60 .setFunctionName(m_functionName) | 52 .setFunctionName(m_functionName) |
61 .setScriptId(m_scriptId) | 53 .setScriptId(m_scriptId) |
62 .setUrl(m_scriptName) | 54 .setUrl(m_scriptName) |
63 .setLineNumber(m_lineNumber) | 55 .setLineNumber(m_lineNumber) |
64 .setColumnNumber(m_column) | 56 .setColumnNumber(m_column) |
65 .release(); | 57 .release(); |
66 } | 58 } |
67 | 59 |
68 } // namespace WebCore | 60 } // namespace WebCore |
OLD | NEW |