X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8de5b24e54bd7fec2a9e2011b2402b3f33117bd7..4ac48ae21050f6540abd57c26ff1aa254f9e0354:/src/html/htmlctrl/webkit/webkit.mm?ds=sidebyside diff --git a/src/html/htmlctrl/webkit/webkit.mm b/src/html/htmlctrl/webkit/webkit.mm index 884b0a0257..1b6155d173 100755 --- a/src/html/htmlctrl/webkit/webkit.mm +++ b/src/html/htmlctrl/webkit/webkit.mm @@ -148,11 +148,11 @@ bool wxWebKitCtrl::Create(wxWindow *parent, m_peer = new wxMacControl(); wxControl::Create(parent, m_windowID, pos, size, style , validator , name); WebInitForCarbon(); - HIWebViewCreate( (HIViewRef*) *m_peer ); + HIWebViewCreate( m_peer->GetControlRefAddr() ); - m_webView = (WebView*) HIWebViewGetWebView( (HIViewRef) *m_peer ); + m_webView = (WebView*) HIWebViewGetWebView( m_peer->GetControlRef() ); MacPostControlCreate(pos, size); - HIViewSetVisible( (HIViewRef) *m_peer, true ); + HIViewSetVisible( m_peer->GetControlRef(), true ); [m_webView setHidden:false]; #endif @@ -294,7 +294,7 @@ void wxWebKitCtrl::OnSize(wxSizeEvent &event){ } void wxWebKitCtrl::MacVisibilityChanged(){ - bool isHidden = !IsControlVisible( (HIViewRef)*m_peer); + bool isHidden = !IsControlVisible( m_peer->GetControlRef()); [m_webView setHidden:isHidden]; }