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

Unified Diff: ash/system/tray/tray_item_view.cc

Issue 11418040: gfx::Transform API clean-up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/system/tray/tray_item_view.cc
diff --git a/ash/system/tray/tray_item_view.cc b/ash/system/tray/tray_item_view.cc
index 23f0d53d62b00f22bbdf4a0dd311b726107e7cac..4d2da0f596a2da05693f9622ca8e1ff0c8e85316 100644
--- a/ash/system/tray/tray_item_view.cc
+++ b/ash/system/tray/tray_item_view.cc
@@ -95,10 +95,10 @@ void TrayItemView::ChildPreferredSizeChanged(views::View* child) {
void TrayItemView::AnimationProgressed(const ui::Animation* animation) {
gfx::Transform transform;
- transform.SetScale(animation->GetCurrentValue(),
- animation->GetCurrentValue());
- transform.ConcatTranslate(0, animation->CurrentValueBetween(
+ transform.Translate(0, animation->CurrentValueBetween(
static_cast<double>(height()) / 2, 0.));
+ transform.Scale(animation->GetCurrentValue(),
+ animation->GetCurrentValue());
layer()->SetTransform(transform);
PreferredSizeChanged();
}

Powered by Google App Engine
This is Rietveld 408576698