Chromium Code Reviews| Index: third_party/WebKit/Source/devtools/front_end/components/DOMBreakpointsSidebarPane.js |
| diff --git a/third_party/WebKit/Source/devtools/front_end/components/DOMBreakpointsSidebarPane.js b/third_party/WebKit/Source/devtools/front_end/components/DOMBreakpointsSidebarPane.js |
| index fe4246383828943b93ef1a2347834d3ed0f61e9d..27a61c42c76e8e47e4d6451c77cdb2ba1778cffd 100644 |
| --- a/third_party/WebKit/Source/devtools/front_end/components/DOMBreakpointsSidebarPane.js |
| +++ b/third_party/WebKit/Source/devtools/front_end/components/DOMBreakpointsSidebarPane.js |
| @@ -57,21 +57,12 @@ WebInspector.DOMBreakpointsSidebarPane = function() |
| this._contextMenuLabels[this._breakpointTypes.NodeRemoved] = WebInspector.UIString.capitalize("Node ^removal"); |
| WebInspector.targetManager.addModelListener(WebInspector.DOMModel, WebInspector.DOMModel.Events.NodeRemoved, this._nodeRemoved, this); |
| - WebInspector.targetManager.addEventListener(WebInspector.TargetManager.Events.InspectedURLChanged, this._inspectedURLChanged, this); |
| - this._inspectedURL = WebInspector.targetManager.inspectedURL(); |
| this._update(); |
| } |
| WebInspector.DOMBreakpointsSidebarPane.Marker = "breakpoint-marker"; |
| WebInspector.DOMBreakpointsSidebarPane.prototype = { |
| - _inspectedURLChanged: function() |
| - { |
| - this._breakpointElements = {}; |
| - this.reset(); |
| - this._inspectedURL = WebInspector.targetManager.inspectedURL(); |
| - }, |
| - |
| /** |
| * @param {!WebInspector.DOMNode} node |
| * @param {!WebInspector.ContextMenu} contextMenu |
| @@ -376,9 +367,13 @@ WebInspector.DOMBreakpointsSidebarPane.prototype = { |
| /** |
| * @param {!WebInspector.DOMModel} domModel |
| + * @param {!WebInspector.DOMDocument} domDocument |
| */ |
| - restoreBreakpoints: function(domModel) |
| + restoreBreakpoints: function(domModel, domDocument) |
|
lushnikov
2016/08/23 23:26:07
no need to pass domModel in here; you can get it f
chenwilliam
2016/08/24 00:18:52
Done.
|
| { |
| + this._breakpointElements = {}; |
| + this.reset(); |
| + this._inspectedURL = domDocument.documentURL; |
| var pathToBreakpoints = {}; |
| /** |