Bug 31789

Summary: Web Inspector: Introduce sidebar background on timeline panel in order to prevent it from flickering on scroll.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: bweinstein, joepeck, rik, timothy
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] proposed fix timothy: review+

Pavel Feldman
Reported 2009-11-22 11:53:48 PST
Will attach patch shortly.
Attachments
[PATCH] proposed fix (5.47 KB, patch)
2009-11-22 11:55 PST, Pavel Feldman
timothy: review+
Pavel Feldman
Comment 1 2009-11-22 11:55:52 PST
Created attachment 43685 [details] [PATCH] proposed fix
Timothy Hatcher
Comment 2 2009-11-22 11:58:41 PST
Comment on attachment 43685 [details] [PATCH] proposed fix > - this._refreshTimeout = setTimeout(this._refresh.bind(this), 100); > + this._refreshTimeout = setTimeout(this._refresh.bind(this), immediate ? 0 : 100); A 0 delay timeout isn't immediate, it will be 10ms in Safari. That matter?
Pavel Feldman
Comment 3 2009-11-22 12:04:26 PST
(In reply to comment #2) > (From update of attachment 43685 [details]) > > > - this._refreshTimeout = setTimeout(this._refresh.bind(this), 100); > > + this._refreshTimeout = setTimeout(this._refresh.bind(this), immediate ? 0 : 100); > > A 0 delay timeout isn't immediate, it will be 10ms in Safari. > > That matter? Not really, I just don't want to wait extra 100ms on scroll since I know i need to redraw and there is no need in coalescing. As a result, 100ms coalescing is only there for window resize (to make it real smooth) and for adding entries (for obvious reasons). Note that I can't invoke refresh on scroller synchronously since it would break the scroller smoothness. Anyway, I think 10ms is good.
Pavel Feldman
Comment 4 2009-11-22 12:06:06 PST
Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/inspector/front-end/TimelinePanel.js M WebCore/inspector/front-end/inspector.css Committed r51297
Note You need to log in before you can comment on or make changes to this bug.