summaryrefslogtreecommitdiffstats
path: root/views/controls/scrollbar
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 17:30:05 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-03 17:30:05 +0000
commit642c224f643ddc33f198b6a9096d02d2054c70fe (patch)
treea11e5fca7924e30326061c43636a302b6dd9bd55 /views/controls/scrollbar
parenta4d95dda9d7bbb55b65ea348c16fb308ac2c79e8 (diff)
downloadchromium_src-642c224f643ddc33f198b6a9096d02d2054c70fe.zip
chromium_src-642c224f643ddc33f198b6a9096d02d2054c70fe.tar.gz
chromium_src-642c224f643ddc33f198b6a9096d02d2054c70fe.tar.bz2
Replace Widget::GetBounds with Widget::GetClientScreenBounds and GetWindowScreenBounds
BUG=72040 TEST=none Review URL: http://codereview.chromium.org/6615016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76759 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/controls/scrollbar')
-rw-r--r--views/controls/scrollbar/bitmap_scroll_bar.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/views/controls/scrollbar/bitmap_scroll_bar.cc b/views/controls/scrollbar/bitmap_scroll_bar.cc
index 6ba05a6..e3bfca8 100644
--- a/views/controls/scrollbar/bitmap_scroll_bar.cc
+++ b/views/controls/scrollbar/bitmap_scroll_bar.cc
@@ -551,8 +551,7 @@ void BitmapScrollBar::ShowContextMenu(View* source,
const gfx::Point& p,
bool is_mouse_gesture) {
Widget* widget = GetWidget();
- gfx::Rect widget_bounds;
- widget->GetBounds(&widget_bounds, true);
+ gfx::Rect widget_bounds = widget->GetWindowScreenBounds();
gfx::Point temp_pt(p.x() - widget_bounds.x(), p.y() - widget_bounds.y());
View::ConvertPointFromWidget(this, &temp_pt);
context_menu_mouse_position_ = IsHorizontal() ? temp_pt.x() : temp_pt.y();