]> git.saurik.com Git - wxWidgets.git/commitdiff
new SDK has frame CGRect return param
authorStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Jul 2008 19:25:52 +0000 (19:25 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Tue, 29 Jul 2008 19:25:52 +0000 (19:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/html/htmlctrl/webkit/webkit.mm

index c5a8192b4688369643446a626515ceaba07c91b8..27216cb00b34cc72afebc37dc6517c872425bb38 100644 (file)
@@ -682,8 +682,8 @@ void wxWebKitCtrl::OnSize(wxSizeEvent &event){
 
     wxWindow* tlw = MacGetTopLevelWindow();
 
-    NSRect frame = [m_webView frame];
-    NSRect bounds = [m_webView bounds];
+    NSRect frame = [(WebView*)m_webView frame];
+    NSRect bounds = [(WebView*)m_webView bounds];
 
 #if DEBUG_WEBKIT_SIZING
     fprintf(stderr,"Carbon window x=%d, y=%d, width=%d, height=%d\n", GetPosition().x, GetPosition().y, GetSize().x, GetSize().y);
@@ -734,7 +734,7 @@ void wxWebKitCtrl::OnSize(wxSizeEvent &event){
 
     frame.origin.x = x;
     frame.origin.y = y;
-    [m_webView setFrame:frame];
+    [(WebView*)m_webView setFrame:frame];
 
     if (IsShown())
         [(WebView*)m_webView display];