Index: chrome/browser/ui/views/tabs/tab_drag_controller.cc |
=================================================================== |
--- chrome/browser/ui/views/tabs/tab_drag_controller.cc (revision 151267) |
+++ chrome/browser/ui/views/tabs/tab_drag_controller.cc (working copy) |
@@ -992,7 +992,7 @@ |
const gfx::Point& point_in_screen) { |
DCHECK(attached_tabstrip_); |
gfx::Point attached_point(point_in_screen); |
- views::View::ConvertPointToView(NULL, attached_tabstrip_, &attached_point); |
+ views::View::ConvertPointToTarget(NULL, attached_tabstrip_, &attached_point); |
if (attached_point.x() < 0) |
return DETACH_BEFORE; |
if (attached_point.x() >= attached_tabstrip_->width()) |
@@ -1124,7 +1124,8 @@ |
// strip. ("ideal bounds" are stable even if the Tabs' actual bounds are |
// changing due to animation). |
gfx::Point tab_strip_point(point_in_screen); |
- views::View::ConvertPointToView(NULL, attached_tabstrip_, &tab_strip_point); |
+ views::View::ConvertPointToTarget(NULL, attached_tabstrip_, |
+ &tab_strip_point); |
tab_strip_point.set_x( |
attached_tabstrip_->GetMirroredXInView(tab_strip_point.x())); |
tab_strip_point.Offset(-mouse_offset_.x(), -mouse_offset_.y()); |
@@ -1491,7 +1492,7 @@ |
DCHECK(attached_tabstrip_); // The tab must be attached. |
gfx::Point tab_loc(point_in_screen); |
- views::View::ConvertPointToView(NULL, attached_tabstrip_, &tab_loc); |
+ views::View::ConvertPointToTarget(NULL, attached_tabstrip_, &tab_loc); |
int x = |
attached_tabstrip_->GetMirroredXInView(tab_loc.x()) - mouse_offset_.x(); |