Changeset 233861 in webkit
- Timestamp:
- Jul 16, 2018 1:06:52 PM (6 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r233858 r233861 1 2018-07-16 Matt Baker <mattbaker@apple.com> 2 3 Web Inspector: Fix execution highlighting after r233820 4 https://bugs.webkit.org/show_bug.cgi?id=187703 5 <rdar://problem/42246167> 6 7 Reviewed by Joseph Pecoraro. 8 9 * UserInterface/Views/SourceCodeTextEditor.js: 10 (WI.SourceCodeTextEditor.prototype.textEditorExecutionHighlightRange): 11 * UserInterface/Views/TextEditor.js: 12 (WI.TextEditor.prototype.currentPositionToOriginalPosition): 13 (WI.TextEditor.prototype._updateExecutionRangeHighlight): 14 1 15 2018-07-16 Aaron Chu <aaron_chu@apple.com> 2 16 -
trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js
r233817 r233861 1414 1414 textEditorExecutionHighlightRange(currentPosition, callback) 1415 1415 { 1416 let {line, ch} = this.currentPositionToOriginalPosition(currentPosition); 1417 let position = new WI.SourceCodePosition(line, ch); 1416 let position = this.currentPositionToOriginalPosition(currentPosition); 1418 1417 1419 1418 let script = this._getAssociatedScript(position); … … 1492 1491 }); 1493 1492 1494 let characterAtPosition = this.getTextInRange(currentPosition, {line: currentPosition.line, ch: currentPosition.ch + 1});1493 let characterAtPosition = this.getTextInRange(currentPosition, currentPosition.offsetColumn(1)); 1495 1494 let characterAtPositionIsDotOrBracket = characterAtPosition === "." || characterAtPosition === "["; 1496 1495 -
trunk/Source/WebInspectorUI/UserInterface/Views/TextEditor.js
r233820 r233861 785 785 return position; 786 786 787 let location = this._formatterSourceMap.formattedToOriginal(position.line , position.ch);788 return {line: location.lineNumber, ch: location.columnNumber};787 let location = this._formatterSourceMap.formattedToOriginal(position.lineNumber, position.columnNumber); 788 return new WI.SourceCodePosition(location.lineNumber, location.columnNumber); 789 789 } 790 790 … … 1324 1324 return; 1325 1325 1326 let currentPosition = {line: this._executionLineNumber, ch: this._executionColumnNumber};1326 let currentPosition = new WI.SourceCodePosition(this._executionLineNumber, this._executionColumnNumber); 1327 1327 1328 1328 this._delegate.textEditorExecutionHighlightRange(currentPosition, (range) => {
Note: See TracChangeset
for help on using the changeset viewer.