RESOLVED FIXED 146765
[Cocoa] Report the first paint after committing a load as a rendering progress event
https://bugs.webkit.org/show_bug.cgi?id=146765
Summary [Cocoa] Report the first paint after committing a load as a rendering progres...
mitz
Reported 2015-07-08 17:41:15 PDT
Allow clients to synchronize changes to their UI with the committed page painting for the first time (replacing the previous page) by reporting this as a rendering progress event.
Attachments
Add _WKRenderingProgressEventFirstPaint (4.50 KB, patch)
2015-07-08 17:44 PDT, mitz
thorton: review+
mitz
Comment 1 2015-07-08 17:44:30 PDT
Created attachment 256441 [details] Add _WKRenderingProgressEventFirstPaint
Tim Horton
Comment 2 2015-07-08 18:15:14 PDT
Comment on attachment 256441 [details] Add _WKRenderingProgressEventFirstPaint View in context: https://bugs.webkit.org/attachment.cgi?id=256441&action=review > Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:975 > + _navigationState->didFirstPaint(); Will _needsResetViewStateAfterCommitLoadForMainFrame always be true in the necessary cases?
mitz
Comment 3 2015-07-08 20:11:17 PDT
Comment on attachment 256441 [details] Add _WKRenderingProgressEventFirstPaint View in context: https://bugs.webkit.org/attachment.cgi?id=256441&action=review >> Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:975 >> + _navigationState->didFirstPaint(); > > Will _needsResetViewStateAfterCommitLoadForMainFrame always be true in the necessary cases? I think so? It gets set to YES when the load is committed. Do you have a specific concern?
Tim Horton
Comment 4 2015-07-08 23:04:46 PDT
Comment on attachment 256441 [details] Add _WKRenderingProgressEventFirstPaint View in context: https://bugs.webkit.org/attachment.cgi?id=256441&action=review >>> Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:975 >>> + _navigationState->didFirstPaint(); >> >> Will _needsResetViewStateAfterCommitLoadForMainFrame always be true in the necessary cases? > > I think so? It gets set to YES when the load is committed. Do you have a specific concern? Not at all, just couldn't check at the time and the name is not quite so definitive. Sounds good to me!
mitz
Comment 5 2015-07-09 00:03:05 PDT
Note You need to log in before you can comment on or make changes to this bug.