summaryrefslogtreecommitdiffstats
path: root/chrome/views/native_scroll_bar.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/native_scroll_bar.cc')
-rw-r--r--chrome/views/native_scroll_bar.cc12
1 files changed, 2 insertions, 10 deletions
diff --git a/chrome/views/native_scroll_bar.cc b/chrome/views/native_scroll_bar.cc
index 53c5189..5d69c43 100644
--- a/chrome/views/native_scroll_bar.cc
+++ b/chrome/views/native_scroll_bar.cc
@@ -238,16 +238,8 @@ void NativeScrollBar::ViewHierarchyChanged(bool is_add, View *parent,
}
void NativeScrollBar::Layout() {
- if (sb_view_) {
- CRect lb;
- GetLocalBounds(&lb, true);
- sb_view_->SetBounds(0, 0, lb.Width(), lb.Height());
- }
-}
-
-void NativeScrollBar::DidChangeBounds(const CRect& previous,
- const CRect& current) {
- Layout();
+ if (sb_view_)
+ sb_view_->SetBounds(GetLocalBounds(true));
}
gfx::Size NativeScrollBar::GetPreferredSize() {