Title: [281246] trunk/Source/WebKit
- Revision
- 281246
- Author
- simon.fra...@apple.com
- Date
- 2021-08-19 09:32:22 -0700 (Thu, 19 Aug 2021)
Log Message
Fix the typo in horiontalRubberbandAmountInContentCoordinates
https://bugs.webkit.org/show_bug.cgi?id=229255
Reviewed by Tim Horton.
* UIProcess/API/ios/WKWebViewIOS.mm:
(-[WKWebView _contentBoundsExtendedForRubberbandingWithScale:]):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (281245 => 281246)
--- trunk/Source/WebKit/ChangeLog 2021-08-19 16:28:04 UTC (rev 281245)
+++ trunk/Source/WebKit/ChangeLog 2021-08-19 16:32:22 UTC (rev 281246)
@@ -1,5 +1,15 @@
2021-08-19 Simon Fraser <simon.fra...@apple.com>
+ Fix the typo in horiontalRubberbandAmountInContentCoordinates
+ https://bugs.webkit.org/show_bug.cgi?id=229255
+
+ Reviewed by Tim Horton.
+
+ * UIProcess/API/ios/WKWebViewIOS.mm:
+ (-[WKWebView _contentBoundsExtendedForRubberbandingWithScale:]):
+
+2021-08-19 Simon Fraser <simon.fra...@apple.com>
+
Rename WebPageProxy::headerHeight() and related to make it clear they are for printing
https://bugs.webkit.org/show_bug.cgi?id=229242
Modified: trunk/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm (281245 => 281246)
--- trunk/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm 2021-08-19 16:28:04 UTC (rev 281245)
+++ trunk/Source/WebKit/UIProcess/API/ios/WKWebViewIOS.mm 2021-08-19 16:32:22 UTC (rev 281246)
@@ -2092,16 +2092,16 @@
CGPoint contentOffset = [_scrollView contentOffset];
CGPoint boundedOffset = contentOffsetBoundedInValidRange(_scrollView.get(), contentOffset);
- CGFloat horiontalRubberbandAmountInContentCoordinates = (contentOffset.x - boundedOffset.x) / scaleFactor;
+ CGFloat horizontalRubberbandAmountInContentCoordinates = (contentOffset.x - boundedOffset.x) / scaleFactor;
CGFloat verticalRubberbandAmountInContentCoordinates = (contentOffset.y - boundedOffset.y) / scaleFactor;
CGRect extendedBounds = [_contentView bounds];
- if (horiontalRubberbandAmountInContentCoordinates < 0) {
- extendedBounds.origin.x += horiontalRubberbandAmountInContentCoordinates;
- extendedBounds.size.width -= horiontalRubberbandAmountInContentCoordinates;
- } else if (horiontalRubberbandAmountInContentCoordinates > 0)
- extendedBounds.size.width += horiontalRubberbandAmountInContentCoordinates;
+ if (horizontalRubberbandAmountInContentCoordinates < 0) {
+ extendedBounds.origin.x += horizontalRubberbandAmountInContentCoordinates;
+ extendedBounds.size.width -= horizontalRubberbandAmountInContentCoordinates;
+ } else if (horizontalRubberbandAmountInContentCoordinates > 0)
+ extendedBounds.size.width += horizontalRubberbandAmountInContentCoordinates;
if (verticalRubberbandAmountInContentCoordinates < 0) {
extendedBounds.origin.y += verticalRubberbandAmountInContentCoordinates;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes