Bug 134129

Summary: WKThumbnailView should only use live layer trees before the snapshot arrives for parented WKViews
Product: WebKit Reporter: Tim Horton <thorton>
Component: WebKit2Assignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: simon.fraser, webkit-bug-importer
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch andersca: review+

Description Tim Horton 2014-06-20 14:54:07 PDT
We currently pull the live layer tree into the WKThumbnailView even in snapshot mode, before the snapshot arrives, to avoid flashing when transitioning a live WKView to a thumbnail view. This is, however, not useful for unparented WKViews, because their layer tree will be detached and we'll flash anyway. So, only do that when the WKView is parented.

Also, add a white background so if we don't have a snapshot yet, the thumbnail view isn't transparent.
Comment 1 Tim Horton 2014-06-20 15:03:34 PDT
Created attachment 233461 [details]
patch
Comment 2 Tim Horton 2014-06-20 15:34:33 PDT
<rdar://problem/17401591>
Comment 3 Tim Horton 2014-06-20 15:38:55 PDT
http://trac.webkit.org/changeset/170216