Changeset 180937 in webkit
- Timestamp:
- Mar 3, 2015 9:13:23 AM (9 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r180935 r180937 1 2015-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 1 14 2015-03-03 Brian J. Burg <burg@cs.washington.edu> 2 15 -
trunk/Source/WebInspectorUI/UserInterface/Views/Popover.js
r173117 r180937 354 354 this._drawBackground(); 355 355 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)); 363 358 } 364 359
Note: See TracChangeset
for help on using the changeset viewer.