2010-07-12 Maciej Stachowiak <mjs@apple.com>
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Jul 2010 01:58:45 +0000 (01:58 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 13 Jul 2010 01:58:45 +0000 (01:58 +0000)
        Reviewed by Anders Carlsson.

        WKView should override setFrameSize: instead of setFrame:
        https://bugs.webkit.org/show_bug.cgi?id=42127

        * UIProcess/API/mac/WKView.mm:
        (-[WKView setFrameSize:]): Override this method instead of setFrame:,
        since that is the right way to do it.

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

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

index ed3db6ae6eb84abcbccef9028adbbc2a34d5e7ca..7fac8054e77978a676c56ac52a145972c39494ee 100644 (file)
@@ -1,3 +1,14 @@
+2010-07-12  Maciej Stachowiak  <mjs@apple.com>
+
+        Reviewed by Anders Carlsson.
+
+        WKView should override setFrameSize: instead of setFrame:
+        https://bugs.webkit.org/show_bug.cgi?id=42127
+
+        * UIProcess/API/mac/WKView.mm:
+        (-[WKView setFrameSize:]): Override this method instead of setFrame:,
+        since that is the right way to do it.
+
 2010-07-12  Steve Falkenburg  <sfalken@apple.com>
 
         Reviewed by Alice Liu.
index 72e41ec42128e0c77e6430107d37c5a81d48b514..78c9a5e4cf03690fc9578f85108d40f382ee6136 100644 (file)
@@ -137,11 +137,11 @@ using namespace WebCore;
     return YES;
 }
 
-- (void)setFrame:(NSRect)frame
+- (void)setFrameSize:(NSSize)size
 {
-    [super setFrame:frame];
+    [super setFrameSize:size];
 
-    _data->_page->drawingArea()->setSize(IntSize(frame.size));
+    _data->_page->drawingArea()->setSize(IntSize(size));
 }
 
 // Events