| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2075 payload: function() | 2075 payload: function() |
| 2076 { | 2076 { |
| 2077 return this._payload; | 2077 return this._payload; |
| 2078 }, | 2078 }, |
| 2079 | 2079 |
| 2080 /** | 2080 /** |
| 2081 * @return {?WebInspector.DOMNode} | 2081 * @return {?WebInspector.DOMNode} |
| 2082 */ | 2082 */ |
| 2083 node: function() | 2083 node: function() |
| 2084 { | 2084 { |
| 2085 return this.target().domModel.nodeForId(this._payload.nodeId); | 2085 return this.target().domModel.nodeForId(this._payload.nodeId || 0); |
| 2086 }, | 2086 }, |
| 2087 | 2087 |
| 2088 /** | 2088 /** |
| 2089 * @return {!WebInspector.DebuggerModel.Location} | 2089 * @return {!WebInspector.DebuggerModel.Location} |
| 2090 */ | 2090 */ |
| 2091 location: function() | 2091 location: function() |
| 2092 { | 2092 { |
| 2093 return WebInspector.DebuggerModel.Location.fromPayload(this.target(), th
is._payload.location); | 2093 return WebInspector.DebuggerModel.Location.fromPayload(this.target(), th
is._payload.location); |
| 2094 }, | 2094 }, |
| 2095 | 2095 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2182 | 2182 |
| 2183 /** | 2183 /** |
| 2184 * @override | 2184 * @override |
| 2185 * @param {!PageAgent.FrameId} frameId | 2185 * @param {!PageAgent.FrameId} frameId |
| 2186 */ | 2186 */ |
| 2187 highlightFrame: function(frameId) | 2187 highlightFrame: function(frameId) |
| 2188 { | 2188 { |
| 2189 this._agent.highlightFrame(frameId, WebInspector.Color.PageHighlight.Con
tent.toProtocolRGBA(), WebInspector.Color.PageHighlight.ContentOutline.toProtoco
lRGBA()); | 2189 this._agent.highlightFrame(frameId, WebInspector.Color.PageHighlight.Con
tent.toProtocolRGBA(), WebInspector.Color.PageHighlight.ContentOutline.toProtoco
lRGBA()); |
| 2190 } | 2190 } |
| 2191 } | 2191 } |
| OLD | NEW |