mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Check that the return value of CefClient::GetRenderHandler is non-NULL (issue #1504).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1995 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -419,10 +419,11 @@ void CefBrowserHostImpl::PlatformTranslateMouseEvent(
|
||||
result.globalY = result.y;
|
||||
|
||||
if (IsWindowless()) {
|
||||
GetClient()->GetRenderHandler()->GetScreenPoint(
|
||||
GetBrowser(),
|
||||
result.x, result.y,
|
||||
result.globalX, result.globalY);
|
||||
CefRefPtr<CefRenderHandler> handler = client_->GetRenderHandler();
|
||||
if (handler.get()) {
|
||||
handler->GetScreenPoint(this, result.x, result.y, result.globalX,
|
||||
result.globalY);
|
||||
}
|
||||
} else if (window_x11_) {
|
||||
const gfx::Point& origin = window_x11_->bounds().origin();
|
||||
result.globalX += origin.x();
|
||||
|
Reference in New Issue
Block a user