Webpages flash white when switching between windows
Created attachment 122057 [details]
Comment on attachment 122057 [details]
View in context: https://bugs.webkit.org/attachment.cgi?id=122057&action=review
> + Introduce a _windowHasValidBackingStore boolean and only paint white if it's false.
Is it really unconditionally white?
> + * UIProcess/API/mac/WKView.mm:
> + (-[WKView setFrameSize:]):
> + (-[WKView viewDidMoveToWindow]):
> + (-[WKView _windowDidMiniaturize:]):
> + (-[WKView _windowDidChangeBackingProperties:]):
> + (-[WKView drawRect:]):
Please add comments here.
> + // The window server invalidates the backing store of whenever the window is resized or minimized.
Typo: “of whenever”.
> + // didn't paint with white, to avoid garbage in those areas.
Is it really always white?
Committed r104727: <http://trac.webkit.org/changeset/104727>