| Index: ui/aura/window_targeter.cc
|
| diff --git a/ui/aura/window_targeter.cc b/ui/aura/window_targeter.cc
|
| index 942d8c74dca5f54de808f15ee785cc923e5b8b53..7db90de14af1f06092ecd9eb1a984f34f5b1f638 100644
|
| --- a/ui/aura/window_targeter.cc
|
| +++ b/ui/aura/window_targeter.cc
|
| @@ -37,10 +37,10 @@ bool WindowTargeter::WindowCanAcceptEvent(aura::Window* window,
|
|
|
| bool WindowTargeter::EventLocationInsideBounds(
|
| aura::Window* window, const ui::LocatedEvent& event) const {
|
| - gfx::RectF bounds = window->bounds();
|
| - if (window->layer())
|
| - window->layer()->transform().TransformRect(&bounds);
|
| - return bounds.Contains(event.location());
|
| + gfx::Point point = event.location();
|
| + if (window->parent())
|
| + aura::Window::ConvertPointToTarget(window->parent(), window, &point);
|
| + return gfx::Rect(window->bounds().size()).Contains(point);
|
| }
|
|
|
| ui::EventTarget* WindowTargeter::FindTargetForEvent(ui::EventTarget* root,
|
|
|