Title: [264194] trunk/Source/WebKit
- Revision
- 264194
- Author
- [email protected]
- Date
- 2020-07-09 13:59:55 -0700 (Thu, 09 Jul 2020)
Log Message
[iOS] Conversation view messages in Mail are too small and scrollable
https://bugs.webkit.org/show_bug.cgi?id=214157
<rdar://problem/64788069>
Reviewed by Wenson Hsieh.
Revert the drive-by contentSize set optimization introduced in r262721.
iOS Mail relies on this delayed/late setContentSize call on WKScrollView (see rdar://problem/65277759).
* UIProcess/ios/WKScrollView.mm:
(-[WKScrollView _setContentSizePreservingContentOffsetDuringRubberband:]):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (264193 => 264194)
--- trunk/Source/WebKit/ChangeLog 2020-07-09 20:44:27 UTC (rev 264193)
+++ trunk/Source/WebKit/ChangeLog 2020-07-09 20:59:55 UTC (rev 264194)
@@ -1,3 +1,17 @@
+2020-07-09 Zalan Bujtas <[email protected]>
+
+ [iOS] Conversation view messages in Mail are too small and scrollable
+ https://bugs.webkit.org/show_bug.cgi?id=214157
+ <rdar://problem/64788069>
+
+ Reviewed by Wenson Hsieh.
+
+ Revert the drive-by contentSize set optimization introduced in r262721.
+ iOS Mail relies on this delayed/late setContentSize call on WKScrollView (see rdar://problem/65277759).
+
+ * UIProcess/ios/WKScrollView.mm:
+ (-[WKScrollView _setContentSizePreservingContentOffsetDuringRubberband:]):
+
2020-07-09 Lauro Moura <[email protected]>
[GTK] Remaining build fix after r264179
Modified: trunk/Source/WebKit/UIProcess/ios/WKScrollView.mm (264193 => 264194)
--- trunk/Source/WebKit/UIProcess/ios/WKScrollView.mm 2020-07-09 20:44:27 UTC (rev 264193)
+++ trunk/Source/WebKit/UIProcess/ios/WKScrollView.mm 2020-07-09 20:59:55 UTC (rev 264194)
@@ -344,11 +344,9 @@
{
CGSize currentContentSize = [self contentSize];
- if (CGSizeEqualToSize(currentContentSize, contentSize))
- return;
-
BOOL mightBeRubberbanding = self.isDragging || self.isVerticalBouncing || self.isHorizontalBouncing;
- if (!mightBeRubberbanding || CGSizeEqualToSize(currentContentSize, CGSizeZero) || self.zoomScale < self.minimumZoomScale) {
+ if (!mightBeRubberbanding || CGSizeEqualToSize(currentContentSize, CGSizeZero) || CGSizeEqualToSize(currentContentSize, contentSize) || self.zoomScale < self.minimumZoomScale) {
+ // FIXME: rdar://problem/65277759 Find out why iOS Mail needs this call even when the contentSize has not changed.
[self setContentSize:contentSize];
return;
}
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes