Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1356)

Unified Diff: ash/common/system/tray/fixed_sized_scroll_view.cc

Issue 2595163002: Add origin() method on View and use it to simplify some callers. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/common/system/tray/fixed_sized_scroll_view.cc
diff --git a/ash/common/system/tray/fixed_sized_scroll_view.cc b/ash/common/system/tray/fixed_sized_scroll_view.cc
index d3c4a35691d6a8063aa56697a7d5f1ed65186a8d..1959fd654cff71c227a83fedb2544e9391153486 100644
--- a/ash/common/system/tray/fixed_sized_scroll_view.cc
+++ b/ash/common/system/tray/fixed_sized_scroll_view.cc
@@ -62,7 +62,7 @@ void FixedSizedScrollView::Layout() {
// away from the current visible region user is viewing. ScrollView::Layout()
// will make sure the contents line up with its viewport properly if
// the contents moves out of the viewport region.
- bounds.set_origin(contents()->bounds().origin());
+ bounds.set_origin(contents()->origin());
contents()->SetBoundsRect(bounds);
views::ScrollView::Layout();
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | chrome/browser/ui/views/tabs/tab_strip.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698