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

Unified Diff: chrome/browser/ui/views/extensions/extension_install_dialog_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: chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
diff --git a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
index 4532e1ce7bbb76197e9186dd0a3de801a35093fa..bbbb2622a01a623943f8c9c1cf5ae8f2e033e149 100644
--- a/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
+++ b/chrome/browser/ui/views/extensions/extension_install_dialog_view.cc
@@ -622,13 +622,13 @@ void IssueAdviceView::AnimationProgressed(const ui::Animation* animation) {
if (arrow_view_) {
gfx::Transform rotate;
if (animation->GetCurrentValue() != 0.0) {
- rotate.SetTranslate(-arrow_view_->width() / 2.0,
- -arrow_view_->height() / 2.0);
+ rotate.Translate(arrow_view_->width() / 2.0,
+ arrow_view_->height() / 2.0);
// TODO(estade): for some reason there are rendering errors at 90 degrees.
// Figure out why.
- rotate.ConcatRotate(animation->GetCurrentValue() * 89);
- rotate.ConcatTranslate(arrow_view_->width() / 2.0,
- arrow_view_->height() / 2.0);
+ rotate.Rotate(animation->GetCurrentValue() * 89);
+ rotate.Translate(-arrow_view_->width() / 2.0,
+ -arrow_view_->height() / 2.0);
}
arrow_view_->SetTransform(rotate);
}

Powered by Google App Engine
This is Rietveld 408576698