Changeset 207329 in webkit


Ignore:
Timestamp:
Oct 14, 2016 12:10:00 AM (8 years ago)
Author:
commit-queue@webkit.org
Message:

Uncaught Exception: TypeError: this.positionToOffset is not a function - seen hovering expressions with Type Profiler enabled
https://bugs.webkit.org/show_bug.cgi?id=163405
<rdar://problem/28763953>

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-10-14
Reviewed by Matt Baker.

  • UserInterface/Views/SourceCodeTextEditor.js:

Use correct method name, the old one must have gone away.

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r207229 r207329  
     12016-10-14  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Uncaught Exception: TypeError: this.positionToOffset is not a function - seen hovering expressions with Type Profiler enabled
     4        https://bugs.webkit.org/show_bug.cgi?id=163405
     5        <rdar://problem/28763953>
     6
     7        Reviewed by Matt Baker.
     8
     9        * UserInterface/Views/SourceCodeTextEditor.js:
     10        Use correct method name, the old one must have gone away.
     11
    1122016-10-12  Joseph Pecoraro  <pecoraro@apple.com>
    213
  • trunk/Source/WebInspectorUI/UserInterface/Views/SourceCodeTextEditor.js

    r207228 r207329  
    15171517        var sourceID = sourceCode instanceof WebInspector.Script ? sourceCode.id : sourceCode.scripts[0].id;
    15181518        var range = candidate.hoveredTokenRange;
    1519         var offset = this.positionToOffset({line: range.start.line, ch: range.start.ch});
     1519        var offset = this.currentPositionToOriginalOffset(range.start);
    15201520
    15211521        var allRequests = [{
Note: See TracChangeset for help on using the changeset viewer.