new SDK has frame CGRect return param

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54813 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2008-07-29 19:25:52 +00:00
parent 2f539d953b
commit f94a77989a

View 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];