[webkit-reviews] review granted: [Bug 134992] REGRESSION (iOS WebKit2): Cannot scroll while dragging a selection : [Attachment 235032] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jul 16 16:39:28 PDT 2014
Benjamin Poulain <benjamin at webkit.org> has granted Enrica Casucci
<enrica at apple.com>'s request for review:
Bug 134992: REGRESSION (iOS WebKit2): Cannot scroll while dragging a selection
https://bugs.webkit.org/show_bug.cgi?id=134992
Attachment 235032: Patch
https://bugs.webkit.org/attachment.cgi?id=235032&action=review
------- Additional Comments from Benjamin Poulain <benjamin at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=235032&action=review
rs=me
> Source/WebKit2/ChangeLog:14
> + This patch exposes the scroller and the visible content rect so that
> + UIKit can implement autoscroll when dragging the selections.
> + It also changes that way we do hit testing to allow hit test outside
> + the clipping region and fixes the way we compute the selection
rectangle
> + for the block selection, ensuring that we consider also non text
elements
> + like images.
I think this would have been better as 3 patches.
> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:352
> +- (UIScrollView *)scroller
Shouldn't we just override UIKit's _scroller method?
> Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm:357
> +- (CGRect)visibleRect
I would prefer keeping the name unobscuredRect. Having [WKContentView
visibleRect] returning the unobscuredRect seems very confusing.
> Source/WebKit2/WebProcess/WebPage/ios/WebPageIOS.mm:718
> + for (unsigned i = 0; i < size; i++) {
WebKit style:
i++ -> ++i
More information about the webkit-reviews
mailing list