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

Unified Diff: ui/message_center/views/message_list_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: ui/message_center/views/message_list_view.cc
diff --git a/ui/message_center/views/message_list_view.cc b/ui/message_center/views/message_list_view.cc
index f9ef2735240d38eeac658546893134b0c4a9b623..0c0d6bf4ef59de0c537d690b312c0e09fa468f96 100644
--- a/ui/message_center/views/message_list_view.cc
+++ b/ui/message_center/views/message_list_view.cc
@@ -448,7 +448,7 @@ bool MessageListView::AnimateChild(views::View* child,
return false;
} else {
gfx::Rect target(child_area.x(), top, child_area.width(), height);
- if (child->bounds().origin() != target.origin() && animate_on_move)
+ if (child->origin() != target.origin() && animate_on_move)
animator_.AnimateViewTo(child, target);
else
child->SetBoundsRect(target);

Powered by Google App Engine
This is Rietveld 408576698