| Index: ash/wm/workspace/workspace_animations.cc
|
| diff --git a/ash/wm/workspace/workspace_animations.cc b/ash/wm/workspace/workspace_animations.cc
|
| index ae93f6b68137a8bc58b046e8b5996e0fbcaf32eb..2bffbd57503ef29c359f9ecf3522f64f60bf86bc 100644
|
| --- a/ash/wm/workspace/workspace_animations.cc
|
| +++ b/ash/wm/workspace/workspace_animations.cc
|
| @@ -34,10 +34,9 @@ void ApplyWorkspaceScale(ui::Layer* layer, WorkspaceScaleType type) {
|
| const float scale = type == WORKSPACE_SCALE_ABOVE ? kWorkspaceScaleAbove :
|
| kWorkspaceScaleBelow;
|
| gfx::Transform transform;
|
| - transform.ConcatScale(scale, scale);
|
| - transform.ConcatTranslate(
|
| - -layer->bounds().width() * (scale - 1.0f) / 2,
|
| - -layer->bounds().height() * (scale - 1.0f) / 2);
|
| + transform.Translate(-layer->bounds().width() * (scale - 1.0f) / 2,
|
| + -layer->bounds().height() * (scale - 1.0f) / 2);
|
| + transform.Scale(scale, scale);
|
| layer->SetTransform(transform);
|
| }
|
|
|
|
|