Changeset 146858 in webkit


Ignore:
Timestamp:
Mar 26, 2013 1:20:18 AM (11 years ago)
Author:
loislo@chromium.org
Message:

Web Inspector: [FlameChart] Make function bar highlighted consistent with cursor.
https://bugs.webkit.org/show_bug.cgi?id=113266.

Patch by Pan Deng <pan.deng@intel.com> on 2013-03-26
Reviewed by Vsevolod Vlasov.

In Flamechart, the highlighted function bar is not consistent with cursor sometimes,
reason is that time range that converted from cursor position is truncated by floor.
Actually float value is expected to compare with function startTime and duration.

No new tests.

  • inspector/front-end/FlameChart.js:

(WebInspector.FlameChart.prototype._coordinatesToNodeIndex): Remove floor

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r146856 r146858  
     12013-03-26  Pan Deng  <pan.deng@intel.com>
     2
     3        Web Inspector: [FlameChart] Make function bar highlighted consistent with cursor.
     4        https://bugs.webkit.org/show_bug.cgi?id=113266.
     5
     6        Reviewed by Vsevolod Vlasov.
     7
     8        In Flamechart, the highlighted function bar is not consistent with cursor sometimes,
     9        reason is that time range that converted from cursor position is truncated by floor.
     10        Actually float value is expected to compare with function startTime and duration.
     11
     12        No new tests.
     13
     14        * inspector/front-end/FlameChart.js:
     15        (WebInspector.FlameChart.prototype._coordinatesToNodeIndex): Remove floor
     16
    1172013-03-26  Mihnea Ovidenie  <mihnea@adobe.com>
    218
  • trunk/Source/WebCore/inspector/front-end/FlameChart.js

    r146619 r146858  
    452452            return -1;
    453453        var timelineEntries = timelineData.entries;
    454         var cursorTime = Math.floor((x + this._pixelWindowLeft) * this._pixelToTime);
     454        var cursorTime = (x + this._pixelWindowLeft) * this._pixelToTime;
    455455        var cursorLevel = Math.floor((this._canvas.height - y) / this._barHeight);
    456456
Note: See TracChangeset for help on using the changeset viewer.