Changeset 268626 in webkit
- Timestamp:
- Oct 16, 2020 6:50:57 PM (4 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r268473 r268626 1 2020-10-16 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: REGRESSION(r266480): line-based JavaScript breakpoint tree element titles also show the file name 4 https://bugs.webkit.org/show_bug.cgi?id=217859 5 6 Reviewed by Timothy Hatcher. 7 8 r266480 changed it such that `WI.BreakpointTreeElement` would only call `updateTitles` if 9 the constructor was not provided a `title` while also adding a fallback for `title` in the 10 constructor of `WI.JavaScriptBreakpointTreeElement`, ensuring that it would always be set 11 by the time it reached `WI.BreakpointTreeElement`, meaning that `updateTitles` would never 12 be called. 13 14 Since `updateTitles` was only implemented by `WI.JavaScriptBreakpointTreeElement`, remove 15 it from `WI.BreakpointTreeElement` and ensure that it is always called for non-special 16 JavaScript breakpoints (in addition to whenever the `WI.SourceCodeLocation` changes). 17 18 * UserInterface/Views/BreakpointTreeElement.js: 19 (WI.BreakpointTreeElement.prototype.updateTitles): Deleted. 20 * UserInterface/Views/JavaScriptBreakpointTreeElement.js: 21 (WI.JavaScriptBreakpointTreeElement): 22 (WI.JavaScriptBreakpointTreeElement.prototype._updateTitles): Added. 23 (WI.JavaScriptBreakpointTreeElement.prototype._breakpointLocationDidChange): 24 (WI.JavaScriptBreakpointTreeElement.prototype.updateTitles): Deleted. 25 1 26 2020-10-14 Devin Rousso <drousso@apple.com> 2 27 -
trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointTreeElement.js
r266534 r268626 55 55 this._listenerSet.register(this.status, "click", this._statusImageElementClicked); 56 56 57 if (!title)58 this.updateTitles();59 57 this.updateStatus(); 60 58 … … 144 142 if (this._breakpoint.editable) 145 143 this.status.classList.toggle(WI.BreakpointTreeElement.StatusImageAutoContinueStyleClassName, this._breakpoint.autoContinue); 146 }147 148 updateTitles()149 {150 // Overridden by subclasses if needed.151 144 } 152 145 -
trunk/Source/WebInspectorUI/UserInterface/Views/JavaScriptBreakpointTreeElement.js
r266480 r268626 34 34 classNames.push("javascript"); 35 35 36 if (!title )36 if (!title && breakpoint.special) 37 37 title = breakpoint.displayName; 38 38 39 39 super(breakpoint, {classNames, title}); 40 40 41 if (!breakpoint.special) 41 if (!breakpoint.special) { 42 42 this.listenerSet.register(breakpoint, WI.JavaScriptBreakpoint.Event.LocationDidChange, this._breakpointLocationDidChange); 43 this._updateTitles(); 44 } 43 45 this.listenerSet.register(breakpoint, WI.JavaScriptBreakpoint.Event.ResolvedStateDidChange, this.updateStatus); 44 46 } … … 63 65 } 64 66 65 updateTitles() 67 // Private 68 69 _updateTitles() 66 70 { 67 super.updateTitles();68 69 71 console.assert(!this.breakpoint.special); 70 72 … … 90 92 } 91 93 92 // Private93 94 94 _breakpointLocationDidChange(event) 95 95 { … … 100 100 return; 101 101 102 this. updateTitles();102 this._updateTitles(); 103 103 } 104 104 };
Note: See TracChangeset
for help on using the changeset viewer.