Title: [291265] branches/safari-614.1.5.9-branch/Source/WebKit
- Revision
- 291265
- Author
- [email protected]
- Date
- 2022-03-14 19:28:55 -0700 (Mon, 14 Mar 2022)
Log Message
Cherry-pick r290797. rdar://problem/79198381
WKContentView should explicitly request the system pointer in the fallback case
https://bugs.webkit.org/show_bug.cgi?id=237410
<rdar://79198381>
Reviewed by Anders Carlsson.
* UIProcess/ios/WKContentViewInteraction.mm:
(-[WKContentView pointerRegionForPositionInformation:point:]):
(-[WKContentView pointerInteraction:styleForRegion:]):
Instead of assuming a nil region and nil style will provide the system
pointer, provide a region the size of the WKContentView and explicitly
request the system pointer shape.
Also, drive-by adopt the API `systemPointerStyle` instead of the
deprecated SPI version.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Modified Paths
Diff
Modified: branches/safari-614.1.5.9-branch/Source/WebKit/ChangeLog (291264 => 291265)
--- branches/safari-614.1.5.9-branch/Source/WebKit/ChangeLog 2022-03-15 02:13:22 UTC (rev 291264)
+++ branches/safari-614.1.5.9-branch/Source/WebKit/ChangeLog 2022-03-15 02:28:55 UTC (rev 291265)
@@ -1,3 +1,44 @@
+2022-03-14 Russell Epstein <[email protected]>
+
+ Cherry-pick r290797. rdar://problem/79198381
+
+ WKContentView should explicitly request the system pointer in the fallback case
+ https://bugs.webkit.org/show_bug.cgi?id=237410
+ <rdar://79198381>
+
+ Reviewed by Anders Carlsson.
+
+ * UIProcess/ios/WKContentViewInteraction.mm:
+ (-[WKContentView pointerRegionForPositionInformation:point:]):
+ (-[WKContentView pointerInteraction:styleForRegion:]):
+ Instead of assuming a nil region and nil style will provide the system
+ pointer, provide a region the size of the WKContentView and explicitly
+ request the system pointer shape.
+
+ Also, drive-by adopt the API `systemPointerStyle` instead of the
+ deprecated SPI version.
+
+
+ git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290797 268f45cc-cd09-0410-ab3c-d52691b4dbfc
+
+ 2022-03-03 Tim Horton <[email protected]>
+
+ WKContentView should explicitly request the system pointer in the fallback case
+ https://bugs.webkit.org/show_bug.cgi?id=237410
+ <rdar://79198381>
+
+ Reviewed by Anders Carlsson.
+
+ * UIProcess/ios/WKContentViewInteraction.mm:
+ (-[WKContentView pointerRegionForPositionInformation:point:]):
+ (-[WKContentView pointerInteraction:styleForRegion:]):
+ Instead of assuming a nil region and nil style will provide the system
+ pointer, provide a region the size of the WKContentView and explicitly
+ request the system pointer shape.
+
+ Also, drive-by adopt the API `systemPointerStyle` instead of the
+ deprecated SPI version.
+
2022-03-03 Russell Epstein <[email protected]>
Cherry-pick r290805. rdar://problem/89053248
Modified: branches/safari-614.1.5.9-branch/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm (291264 => 291265)
--- branches/safari-614.1.5.9-branch/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2022-03-15 02:13:22 UTC (rev 291264)
+++ branches/safari-614.1.5.9-branch/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm 2022-03-15 02:28:55 UTC (rev 291265)
@@ -10060,7 +10060,7 @@
return [UIPointerRegion regionWithRect:self.bounds identifier:editablePointerRegionIdentifier];
}
- return nil;
+ return [UIPointerRegion regionWithRect:self.bounds identifier:pointerRegionIdentifier];
}
- (UIPointerStyle *)pointerInteraction:(UIPointerInteraction *)interaction styleForRegion:(UIPointerRegion *)region
@@ -10085,7 +10085,7 @@
if (self.webView._editable) {
if (_positionInformation.shouldNotUseIBeamInEditableContent)
- return nil;
+ return [UIPointerStyle systemPointerStyle];
return iBeamCursor();
}
@@ -10092,17 +10092,14 @@
if (_positionInformation.cursor && [region.identifier isEqual:pointerRegionIdentifier]) {
WebCore::Cursor::Type cursorType = _positionInformation.cursor->type();
- ALLOW_DEPRECATED_DECLARATIONS_BEGIN
if (cursorType == WebCore::Cursor::Hand)
- return [UIPointerStyle _systemPointerStyle];
- ALLOW_DEPRECATED_DECLARATIONS_END
+ return [UIPointerStyle systemPointerStyle];
if (cursorType == WebCore::Cursor::IBeam && _positionInformation.lineCaretExtent.contains(_positionInformation.request.point))
return iBeamCursor();
}
- ASSERT_NOT_REACHED();
- return nil;
+ return [UIPointerStyle systemPointerStyle];
}
#endif // HAVE(UI_POINTER_INTERACTION)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes