Title: [163147] trunk/Source/WebKit2
Revision
163147
Author
[email protected]
Date
2014-01-30 17:53:19 -0800 (Thu, 30 Jan 2014)

Log Message

Crashes after 163116 in [WKView takeViewSnapshot]
https://bugs.webkit.org/show_bug.cgi?id=127973

Reviewed by Alexey Proskuryakov.

* UIProcess/API/mac/WKView.mm:
(-[WKView _takeViewSnapshot]):
Make the ViewGestureController before using it, if we need one.

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (163146 => 163147)


--- trunk/Source/WebKit2/ChangeLog	2014-01-31 01:47:45 UTC (rev 163146)
+++ trunk/Source/WebKit2/ChangeLog	2014-01-31 01:53:19 UTC (rev 163147)
@@ -1,3 +1,14 @@
+2014-01-30  Tim Horton  <[email protected]>
+
+        Crashes after 163116 in [WKView takeViewSnapshot]
+        https://bugs.webkit.org/show_bug.cgi?id=127973
+
+        Reviewed by Alexey Proskuryakov.
+
+        * UIProcess/API/mac/WKView.mm:
+        (-[WKView _takeViewSnapshot]):
+        Make the ViewGestureController before using it, if we need one.
+
 2014-01-30  Anders Carlsson  <[email protected]>
 
         Add a webView:didCommitNavigation: delegate method

Modified: trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm (163146 => 163147)


--- trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm	2014-01-31 01:47:45 UTC (rev 163146)
+++ trunk/Source/WebKit2/UIProcess/API/mac/WKView.mm	2014-01-31 01:53:19 UTC (rev 163147)
@@ -2549,6 +2549,8 @@
     CGSCaptureWindowsContentsToRect(CGSMainConnectionID(), &windowID, 1, CGRectNull, &cgWindowImage);
     RetainPtr<CGImageRef> windowSnapshotImage = adoptCF(cgWindowImage);
 
+    [self _ensureGestureController];
+
     NSRect windowCaptureRect;
     FloatRect boundsForCustomSwipeViews = _data->_gestureController->windowRelativeBoundsForCustomSwipeViews();
     if (!boundsForCustomSwipeViews.isEmpty())
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to