From 9defbadcf3f4b51b959f3e9a5972ca651e8578fe Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Tue, 8 Feb 2011 04:23:18 +0000 Subject: Clean up RTL methods. No one used the non-RTL version of GetBounds(), so I renamed it GetMirroredBounds() and got rid of the enum. Same for GetX(), consolidated with MirroredX() into GetMirroredX(). GetPosition() already took into account mirroring, so renamed GetMirroredPosition() for symmetry. Renamed the other functions to be getters. De-inlined a few that were doing complex looking stuff. http://crbug.com/72040 TEST=none Review URL: http://codereview.chromium.org/6334152 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74087 0039d316-1c4b-4281-b951-d872f2087c98 --- views/animation/bounds_animator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'views/animation') diff --git a/views/animation/bounds_animator.cc b/views/animation/bounds_animator.cc index 652f743..d65dbd7 100644 --- a/views/animation/bounds_animator.cc +++ b/views/animation/bounds_animator.cc @@ -234,7 +234,7 @@ void BoundsAnimator::AnimationContainerProgressed( AnimationContainer* container) { if (!repaint_bounds_.IsEmpty()) { // Adjust for rtl. - repaint_bounds_.set_x(parent_->MirroredXWithWidthInsideView( + repaint_bounds_.set_x(parent_->GetMirroredXWithWidthInView( repaint_bounds_.x(), repaint_bounds_.width())); parent_->SchedulePaint(repaint_bounds_, false); repaint_bounds_.SetRect(0, 0, 0, 0); -- cgit v1.1