Index: ui/views/controls/scroll_view.cc |
diff --git a/ui/views/controls/scroll_view.cc b/ui/views/controls/scroll_view.cc |
index e20f396825a8078884a71d0622284c97a901c649..51db071b71f81d025effdb67000fe404465e4a2e 100644 |
--- a/ui/views/controls/scroll_view.cc |
+++ b/ui/views/controls/scroll_view.cc |
@@ -187,7 +187,7 @@ void ScrollView::SetVerticalScrollBar(ScrollBar* vert_sb) { |
vert_sb_ = vert_sb; |
} |
-gfx::Size ScrollView::GetPreferredSize() { |
+gfx::Size ScrollView::GetPreferredSize() const { |
if (!is_bounded()) |
return View::GetPreferredSize(); |
@@ -199,7 +199,7 @@ gfx::Size ScrollView::GetPreferredSize() { |
return size; |
} |
-int ScrollView::GetHeightForWidth(int width) { |
+int ScrollView::GetHeightForWidth(int width) const { |
if (!is_bounded()) |
return View::GetHeightForWidth(width); |