Bug 139460 - Provide SPI to asynchronously move a WKView into a window and know when it has painted
Summary: Provide SPI to asynchronously move a WKView into a window and know when it ha...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Tim Horton
URL:
Keywords:
Depends on: 139513
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-09 14:45 PST by Tim Horton
Modified: 2014-12-11 04:11 PST (History)
10 users (show)

See Also:


Attachments
Patch (26.17 KB, patch)
2014-12-09 14:46 PST, Tim Horton
andersca: 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 2014-12-09 14:45:43 PST
Provide SPI to asynchronously move a WKView into a window and know when it has painted
Comment 1 Tim Horton 2014-12-09 14:46:12 PST
Created attachment 242967 [details]
Patch
Comment 2 Tim Horton 2014-12-09 14:46:35 PST
<rdar://problem/19135389>
Comment 3 WebKit Commit Bot 2014-12-09 14:48:32 PST
Attachment 242967 [details] did not pass style-queue:


ERROR: Source/WebKit2/UIProcess/API/mac/WKView.mm:2830:  The parameter name "window" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 16 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Anders Carlsson 2014-12-10 12:07:59 PST
Comment on attachment 242967 [details]
Patch

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

> Source/WebKit2/UIProcess/API/mac/WKView.mm:2530
> +    // If we're in the middle of preparing to move to a window, ignore actual moves.
> +    if (_data->_targetWindowForMovePreparation && window != _data->_targetWindowForMovePreparation)
> +        return;

Is this even allowed? :|

> Source/WebKit2/UIProcess/WebPageProxy.cpp:1172
> +{

space after void.

> Source/WebKit2/UIProcess/WebPageProxy.cpp:1178
> +    void(^copiedCompletionHandler)() = Block_copy(completionHandler);

auto.
Comment 5 Tim Horton 2014-12-10 15:00:00 PST
http://trac.webkit.org/changeset/177104
Comment 6 Tim Horton 2014-12-10 15:16:13 PST
Build fix in http://trac.webkit.org/changeset/177106
Comment 8 Csaba Osztrogonác 2014-12-11 04:11:14 PST
buildfix landed in https://trac.webkit.org/changeset/177123