Implement a TODO.

BUG=none
TEST=none
Review URL: http://codereview.chromium.org/646053

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@39494 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/views/view.cc b/views/view.cc
index 3b823a8..a4e5c57 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -242,17 +242,13 @@
 ////////////////////////////////////////////////////////////////////////////////
 
 inline int View::MirroredX() const {
-  // TODO(beng): reimplement in terms of MirroredLeftPointForRect.
   View* parent = GetParent();
-  if (parent && parent->UILayoutIsRightToLeft())
-    return parent->width() - x() - width();
-  return x();
+  return parent ? parent->MirroredLeftPointForRect(bounds_) : x();
 }
 
 int View::MirroredLeftPointForRect(const gfx::Rect& bounds) const {
-  if (!UILayoutIsRightToLeft())
-    return bounds.x();
-  return width() - bounds.x() - bounds.width();
+  return UILayoutIsRightToLeft() ?
+      (width() - bounds.x() - bounds.width()) : bounds.x();
 }
 
 ////////////////////////////////////////////////////////////////////////////////