Title: [164508] trunk/Source/WebKit2
- Revision
- 164508
- Author
- benja...@webkit.org
- Date
- 2014-02-21 15:38:09 -0800 (Fri, 21 Feb 2014)
Log Message
[iOS][WK2] Update the visible content rects on zoom
https://bugs.webkit.org/show_bug.cgi?id=129174
Patch by Benjamin Poulain <bpoul...@apple.com> on 2014-02-21
Reviewed by Simon Fraser.
Generalize _updateVisibleContentRects to also act during the zoom and not only at the end.
* UIProcess/API/Cocoa/WKWebView.mm:
(-[WKWebView scrollViewDidZoom:]):
* UIProcess/API/ios/WKViewIOS.mm:
(-[WKView scrollViewDidZoom:]):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (164507 => 164508)
--- trunk/Source/WebKit2/ChangeLog 2014-02-21 23:35:32 UTC (rev 164507)
+++ trunk/Source/WebKit2/ChangeLog 2014-02-21 23:38:09 UTC (rev 164508)
@@ -1,3 +1,17 @@
+2014-02-21 Benjamin Poulain <bpoul...@apple.com>
+
+ [iOS][WK2] Update the visible content rects on zoom
+ https://bugs.webkit.org/show_bug.cgi?id=129174
+
+ Reviewed by Simon Fraser.
+
+ Generalize _updateVisibleContentRects to also act during the zoom and not only at the end.
+
+ * UIProcess/API/Cocoa/WKWebView.mm:
+ (-[WKWebView scrollViewDidZoom:]):
+ * UIProcess/API/ios/WKViewIOS.mm:
+ (-[WKView scrollViewDidZoom:]):
+
2014-02-21 Benjamin Poulain <benja...@webkit.org>
jsDocumentPrototypeFunctionGetElementById should not create an AtomicString for the function argument
Modified: trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm (164507 => 164508)
--- trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm 2014-02-21 23:35:32 UTC (rev 164507)
+++ trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm 2014-02-21 23:38:09 UTC (rev 164508)
@@ -386,6 +386,11 @@
[self _updateVisibleContentRects];
}
+- (void)scrollViewDidZoom:(UIScrollView *)scrollView
+{
+ [self _updateVisibleContentRects];
+}
+
- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(CGFloat)scale
{
ASSERT(scrollView == _scrollView);
Modified: trunk/Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm (164507 => 164508)
--- trunk/Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm 2014-02-21 23:35:32 UTC (rev 164507)
+++ trunk/Source/WebKit2/UIProcess/API/ios/WKViewIOS.mm 2014-02-21 23:38:09 UTC (rev 164508)
@@ -223,6 +223,11 @@
[self _updateVisibleContentRects];
}
+- (void)scrollViewDidZoom:(UIScrollView *)scrollView
+{
+ [self _updateVisibleContentRects];
+}
+
- (void)scrollViewDidEndZooming:(UIScrollView *)scrollView withView:(UIView *)view atScale:(CGFloat)scale
{
ASSERT(scrollView == _scrollView);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes