RESOLVED FIXED 206849
Add WKWebView SPI equivalent of WKView.shouldClipToVisibleRect
https://bugs.webkit.org/show_bug.cgi?id=206849
Summary Add WKWebView SPI equivalent of WKView.shouldClipToVisibleRect
Alex Christensen
Reported 2020-01-27 16:12:20 PST
Add WKWebView SPI equivalent of WKView.shouldClipToVisibleRect
Attachments
Patch (2.70 KB, patch)
2020-01-27 16:15 PST, Alex Christensen
no flags
Patch (2.97 KB, patch)
2020-01-27 17:22 PST, Alex Christensen
no flags
Alex Christensen
Comment 1 2020-01-27 16:15:16 PST
Simon Fraser (smfr)
Comment 2 2020-01-27 17:11:33 PST
Comment on attachment 388934 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=388934&action=review > Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:518 > +@property (nonatomic, readwrite, setter=_setClipsToVisibleRect:) BOOL _clipsToVisibleRect WK_API_AVAILABLE(macos(WK_MAC_TBA)); Please add some explanatory comment in header doc style. I would suggest: _clipsToVisibleRect: When YES, the view will use its -visibleRect when determining which areas of the WKWebView to draw. This may improve performance for large WKWebViews which are mostly clipped out by enclosing views. Should we make this available for iOS too?
Alex Christensen
Comment 3 2020-01-27 17:22:02 PST
Alex Christensen
Comment 4 2020-01-27 17:23:25 PST
(In reply to Simon Fraser (smfr) from comment #2) > Comment on attachment 388934 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=388934&action=review > > > Source/WebKit/UIProcess/API/Cocoa/WKWebViewPrivate.h:518 > > +@property (nonatomic, readwrite, setter=_setClipsToVisibleRect:) BOOL _clipsToVisibleRect WK_API_AVAILABLE(macos(WK_MAC_TBA)); > > Please add some explanatory comment in header doc style. I would suggest: > > _clipsToVisibleRect: When YES, the view will use its -visibleRect when > determining which areas of the WKWebView to draw. This may improve > performance for large WKWebViews which are mostly clipped out by enclosing > views. Done! > Should we make this available for iOS too? The boolean value this sets is only used inside of #if PLATFORM(MAC). If requested, we could develop a conceptual equivalent, but this is sufficient for now.
WebKit Commit Bot
Comment 5 2020-01-27 18:20:09 PST
The commit-queue encountered the following flaky tests while processing attachment 388947 [details]: editing/spelling/spellcheck-async-remove-frame.html bug 158401 (authors: morrita@google.com, rniwa@webkit.org, and tony@chromium.org) The commit-queue is continuing to process your patch.
WebKit Commit Bot
Comment 6 2020-01-27 18:20:46 PST
Comment on attachment 388947 [details] Patch Clearing flags on attachment: 388947 Committed r255220: <https://trac.webkit.org/changeset/255220>
WebKit Commit Bot
Comment 7 2020-01-27 18:20:48 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 8 2020-01-27 18:21:11 PST
Note You need to log in before you can comment on or make changes to this bug.