Changeset 180937 in webkit


Ignore:
Timestamp:
Mar 3, 2015 9:13:23 AM (9 years ago)
Author:
Brian Burg
Message:

Web Inspector: popover should use requestAnimationFrame to drive move/resize animations
https://bugs.webkit.org/show_bug.cgi?id=142218

Reviewed by Timothy Hatcher.

Remove setTimeout workaround now that Inspector runs in its own process.

  • UserInterface/Views/Popover.js:

(WebInspector.Popover.prototype.drawBackground):
(WebInspector.Popover.prototype._animateFrame):

Location:
trunk/Source/WebInspectorUI
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebInspectorUI/ChangeLog

    r180935 r180937  
     12015-03-03  Brian J. Burg  <burg@cs.washington.edu>
     2
     3        Web Inspector: popover should use requestAnimationFrame to drive move/resize animations
     4        https://bugs.webkit.org/show_bug.cgi?id=142218
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        Remove setTimeout workaround now that Inspector runs in its own process.
     9
     10        * UserInterface/Views/Popover.js:
     11        (WebInspector.Popover.prototype.drawBackground):
     12        (WebInspector.Popover.prototype._animateFrame):
     13
    1142015-03-03  Brian J. Burg  <burg@cs.washington.edu>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Views/Popover.js

    r173117 r180937  
    354354            this._drawBackground();
    355355
    356             if (progress < 1) {
    357                 // FIXME: Revert to using window.requestAnimationFrame when Inspector is out of process.
    358                 // It can't currently use window.requestAnimationFrame because the callback passed into
    359                 // it won't fire while paused in the debugger inside the Inspector.
    360                 const animationRate60FPS = 17;
    361                 setTimeout(drawBackground.bind(this), animationRate60FPS);
    362             }
     356            if (progress < 1)
     357                requestAnimationFrame(drawBackground.bind(this));
    363358        }
    364359
Note: See TracChangeset for help on using the changeset viewer.