diff options
Diffstat (limited to 'chrome/views/image_view.cc')
-rw-r--r-- | chrome/views/image_view.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/views/image_view.cc b/chrome/views/image_view.cc index bde1b6b..00c771d 100644 --- a/chrome/views/image_view.cc +++ b/chrome/views/image_view.cc @@ -80,10 +80,10 @@ void ImageView::ComputeImageOrigin(int image_width, int image_height, *x = 0; break; case TRAILING: - *x = GetWidth() - image_width; + *x = width() - image_width; break; case CENTER: - *x = (GetWidth() - image_width) / 2; + *x = (width() - image_width) / 2; break; default: NOTREACHED(); @@ -94,10 +94,10 @@ void ImageView::ComputeImageOrigin(int image_width, int image_height, *y = 0; break; case TRAILING: - *y = GetHeight() - image_height; + *y = height() - image_height; break; case CENTER: - *y = (GetHeight() - image_height) / 2; + *y = (height() - image_height) / 2; break; default: NOTREACHED(); |