| Index: trunk/src/content/browser/web_contents/touch_editable_impl_aura.cc
|
| ===================================================================
|
| --- trunk/src/content/browser/web_contents/touch_editable_impl_aura.cc (revision 273804)
|
| +++ trunk/src/content/browser/web_contents/touch_editable_impl_aura.cc (working copy)
|
| @@ -255,31 +255,20 @@
|
| if (!rwhva_)
|
| return;
|
| aura::Window* window = rwhva_->GetNativeView();
|
| - aura::Window* root = window->GetRootWindow();
|
| -
|
| - // First convert the point to root window coordinates, then if there is a
|
| - // screen position client, convert it to screen coordinates.
|
| - aura::Window::ConvertPointToTarget(window, root, point);
|
| aura::client::ScreenPositionClient* screen_position_client =
|
| - aura::client::GetScreenPositionClient(root);
|
| + aura::client::GetScreenPositionClient(window->GetRootWindow());
|
| if (screen_position_client)
|
| - screen_position_client->ConvertPointToScreen(root, point);
|
| + screen_position_client->ConvertPointToScreen(window, point);
|
| }
|
|
|
| void TouchEditableImplAura::ConvertPointFromScreen(gfx::Point* point) {
|
| if (!rwhva_)
|
| return;
|
| aura::Window* window = rwhva_->GetNativeView();
|
| - aura::Window* root = window->GetRootWindow();
|
| -
|
| - // If there is a screen position client, convert the point from screen to root
|
| - // window and then to client coordinates. Otherwise, suppose the point is in
|
| - // root window coordinates and convert it to client coordinates.
|
| aura::client::ScreenPositionClient* screen_position_client =
|
| - aura::client::GetScreenPositionClient(root);
|
| + aura::client::GetScreenPositionClient(window->GetRootWindow());
|
| if (screen_position_client)
|
| - screen_position_client->ConvertPointFromScreen(root, point);
|
| - aura::Window::ConvertPointToTarget(root, window, point);
|
| + screen_position_client->ConvertPointFromScreen(window, point);
|
| }
|
|
|
| bool TouchEditableImplAura::DrawsHandles() {
|
|
|