diff options
-rw-r--r-- | ash/wm/coordinate_conversion.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ash/wm/coordinate_conversion.cc b/ash/wm/coordinate_conversion.cc index 448bd0f..49bad5a 100644 --- a/ash/wm/coordinate_conversion.cc +++ b/ash/wm/coordinate_conversion.cc @@ -32,6 +32,9 @@ aura::Window* GetRootWindowMatching(const gfx::Rect& rect) { } void ConvertPointToScreen(aura::Window* window, gfx::Point* point) { + CHECK(window); + CHECK(window->GetRootWindow()); + CHECK(aura::client::GetScreenPositionClient(window->GetRootWindow())); aura::client::GetScreenPositionClient(window->GetRootWindow())-> ConvertPointToScreen(window, point); } |