Changeset 92461 in webkit


Ignore:
Timestamp:
Aug 5, 2011 12:51:18 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: do not delay scroll event handling - scroll is already async.
https://bugs.webkit.org/show_bug.cgi?id=65693

Patch by Pavel Feldman <pfeldman@google.com> on 2011-08-05
Reviewed by Yury Semikhatsky.

  • inspector/front-end/TextViewer.js:

(WebInspector.TextViewer.prototype._syncScroll):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r92459 r92461  
     12011-08-05  Pavel Feldman  <pfeldman@google.com>
     2
     3        Web Inspector: do not delay scroll event handling - scroll is already async.
     4        https://bugs.webkit.org/show_bug.cgi?id=65693
     5
     6        Reviewed by Yury Semikhatsky.
     7
     8        * inspector/front-end/TextViewer.js:
     9        (WebInspector.TextViewer.prototype._syncScroll):
     10
    1112011-08-05  Mark Pilgrim  <pilgrim@chromium.org>
    212
  • trunk/Source/WebCore/inspector/front-end/TextViewer.js

    r90743 r92461  
    201201    _syncScroll: function()
    202202    {
    203         // Async call due to performance reasons.
    204         setTimeout(function() {
    205             var mainElement = this._mainPanel.element;
    206             var gutterElement = this._gutterPanel.element;
    207             // Handle horizontal scroll bar at the bottom of the main panel.
    208             this._gutterPanel.syncClientHeight(mainElement.clientHeight);
    209             gutterElement.scrollTop = mainElement.scrollTop;
    210         }.bind(this), 0);
     203        var mainElement = this._mainPanel.element;
     204        var gutterElement = this._gutterPanel.element;
     205        // Handle horizontal scroll bar at the bottom of the main panel.
     206        this._gutterPanel.syncClientHeight(mainElement.clientHeight);
     207        gutterElement.scrollTop = mainElement.scrollTop;
    211208    },
    212209
Note: See TracChangeset for help on using the changeset viewer.