Bug 163364 - Expose SPI to disable synchronously blocking on painting after parenting a WKWebView
Summary: Expose SPI to disable synchronously blocking on painting after parenting a WK...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-12 15:18 PDT by Tim Horton
Modified: 2016-10-13 12:05 PDT (History)
6 users (show)

See Also:


Attachments
Patch (9.31 KB, patch)
2016-10-12 15:18 PDT, Tim Horton
no flags Details | Formatted Diff | Diff
Patch (10.28 KB, patch)
2016-10-13 12:02 PDT, Tim Horton
simon.fraser: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Horton 2016-10-12 15:18:18 PDT
Expose SPI to disable synchronously blocking on painting after parenting a WKWebView
Comment 1 Tim Horton 2016-10-12 15:18:59 PDT
Created attachment 291406 [details]
Patch
Comment 2 WebKit Commit Bot 2016-10-12 15:21:38 PDT
Attachment 291406 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:0:  Use #pragma once header guard.  [build/header_guard] [5]
Total errors found: 1 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Geoffrey Garen 2016-10-12 17:04:21 PDT
Comment on attachment 291406 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=291406&action=review

r=me

> Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:661
> +- (BOOL)_shouldSynchronizeInitialPaintAfterMovingToWindow

The AppKit API name for the moment of "moving to window" is "viewDidMoveToWindow".

Maybe we should call this _shouldSynchronizeFirstPaintAfterViewDidMoveToWindow.
Comment 4 Tim Horton 2016-10-12 17:35:30 PDT
Comment on attachment 291406 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=291406&action=review

>> Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfiguration.mm:661
>> +- (BOOL)_shouldSynchronizeInitialPaintAfterMovingToWindow
> 
> The AppKit API name for the moment of "moving to window" is "viewDidMoveToWindow".
> 
> Maybe we should call this _shouldSynchronizeFirstPaintAfterViewDidMoveToWindow.

smfr suggests _waitForPaintAfterViewDidMoveToWindow
Comment 5 Tim Horton 2016-10-13 10:51:45 PDT
https://trac.webkit.org/changeset/207292
Comment 6 Tim Horton 2016-10-13 12:01:58 PDT
Reopening to attach new patch.
Comment 7 Tim Horton 2016-10-13 12:02:00 PDT
Created attachment 291503 [details]
Patch
Comment 8 WebKit Commit Bot 2016-10-13 12:03:17 PDT
Attachment 291503 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/API/Cocoa/WKWebViewConfigurationPrivate.h:0:  Use #pragma once header guard.  [build/header_guard] [5]
Total errors found: 1 in 7 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 9 Tim Horton 2016-10-13 12:05:16 PDT
Renamed in https://trac.webkit.org/changeset/207298