Add WKWebView SPI equivalent of WKView.shouldClipToVisibleRect
Created attachment 388934 [details] Patch
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?
Created attachment 388947 [details] Patch
(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.
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.
Comment on attachment 388947 [details] Patch Clearing flags on attachment: 388947 Committed r255220: <https://trac.webkit.org/changeset/255220>
All reviewed patches have been landed. Closing bug.
<rdar://problem/58942643>