Build fix - too soon!
authorbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Apr 2013 00:15:58 +0000 (00:15 +0000)
committerbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 13 Apr 2013 00:15:58 +0000 (00:15 +0000)
* UIProcess/API/mac/WKView.mm:
(-[WKView setFrameSize:]):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@148322 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/mac/WKView.mm

index ae43e34..3d0cfbc 100644 (file)
@@ -1,3 +1,10 @@
+2013-04-12  Gavin Barraclough  <barraclough@apple.com>
+
+        Build fix - too soon!
+
+        * UIProcess/API/mac/WKView.mm:
+        (-[WKView setFrameSize:]):
+
 2013-04-12  Adenilson Cavalcanti  <cavalcantii@gmail.com>
 
         [WK2] WebPageProxy loadURL() won't work when called just after terminateProcess()
index 4561c33..fda879c 100644 (file)
@@ -419,9 +419,9 @@ struct WKViewInterpretKeyEventsParameters {
     }
     
     // If the frame origin has changed then update the layer position.
-    if (!NSEqualPoints(_data->_frameOrigin, newFrameOrigin)) {
+    if (_data->_layerHostingView && !NSEqualPoints(_data->_frameOrigin, newFrameOrigin)) {
         _data->_frameOrigin = newFrameOrigin;
-        CALayer *rootLayer = [_data->_layerHostingView layer].sublayers[0];
+        CALayer *rootLayer = [[_data->_layerHostingView layer].sublayers objectAtIndex:0];
         [CATransaction begin];
         [CATransaction setDisableActions:YES];
         rootLayer.position = NSMakePoint(-newFrameOrigin.x, -newFrameOrigin.y);