| Index: ui/aura/window_targeter.cc
|
| ===================================================================
|
| --- ui/aura/window_targeter.cc (revision 253296)
|
| +++ ui/aura/window_targeter.cc (working copy)
|
| @@ -37,10 +37,10 @@
|
|
|
| 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,
|
|
|