summaryrefslogtreecommitdiffstats
path: root/views/animation
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 04:23:18 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-08 04:23:18 +0000
commit9defbadcf3f4b51b959f3e9a5972ca651e8578fe (patch)
tree3932f38d3d2e8ea9c5c09cbb1ea371092fbf9b24 /views/animation
parentec8f51164d477d8d83726fe61c68977d17b03149 (diff)
downloadchromium_src-9defbadcf3f4b51b959f3e9a5972ca651e8578fe.zip
chromium_src-9defbadcf3f4b51b959f3e9a5972ca651e8578fe.tar.gz
chromium_src-9defbadcf3f4b51b959f3e9a5972ca651e8578fe.tar.bz2
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
Diffstat (limited to 'views/animation')
-rw-r--r--views/animation/bounds_animator.cc2
1 files changed, 1 insertions, 1 deletions
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);