diff options
Diffstat (limited to 'ui/aura/window.cc')
-rw-r--r-- | ui/aura/window.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/aura/window.cc b/ui/aura/window.cc index 3c6dcc8..91df99e 100644 --- a/ui/aura/window.cc +++ b/ui/aura/window.cc @@ -384,9 +384,9 @@ gfx::Rect Window::GetBoundsInRootWindow() const { // do for now. if (!GetRootWindow()) return bounds(); - gfx::Point origin = bounds().origin(); - ConvertPointToTarget(parent_, GetRootWindow(), &origin); - return gfx::Rect(origin, bounds().size()); + gfx::Rect bounds_in_root(bounds().size()); + ConvertRectToTarget(this, GetRootWindow(), &bounds_in_root); + return bounds_in_root; } gfx::Rect Window::GetBoundsInScreen() const { |