Chromium Code Reviews| Index: ui/aura/window.cc |
| diff --git a/ui/aura/window.cc b/ui/aura/window.cc |
| index 7f8dd83eb571ec26705c858ec79a3ca364960333..685f644e22c7d655bc07e40dc16287c2397fbc98 100644 |
| --- a/ui/aura/window.cc |
| +++ b/ui/aura/window.cc |
| @@ -487,7 +487,8 @@ bool Window::ContainsPointInRoot(const gfx::Point& point_in_root) { |
| return false; |
| gfx::Point local_point(point_in_root); |
| ConvertPointToWindow(root_window, this, &local_point); |
| - return GetTargetBounds().Contains(local_point); |
| + return gfx::Rect(gfx::Point(), |
| + GetTargetBounds().size()).Contains(local_point); |
|
oshima
2012/07/21 13:25:04
gfx::Rect(GetTargetBounds().size()).Contains(local
Yusuke Sato
2012/07/23 16:39:42
Done.
|
| } |
| bool Window::ContainsPoint(const gfx::Point& local_point) { |