summaryrefslogtreecommitdiffstats
path: root/views/view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/view.cc')
-rw-r--r--views/view.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/view.cc b/views/view.cc
index e4ffbe8..2d4a60d 100644
--- a/views/view.cc
+++ b/views/view.cc
@@ -299,7 +299,7 @@ gfx::Rect View::GetContentsBounds() const {
}
gfx::Rect View::GetLocalBounds() const {
- return gfx::Rect(0, 0, width(), height());
+ return gfx::Rect(gfx::Point(), size());
}
gfx::Insets View::GetInsets() const {
@@ -1079,7 +1079,7 @@ void View::OnPaintBorder(gfx::Canvas* canvas) {
void View::OnPaintFocusBorder(gfx::Canvas* canvas) {
if ((IsFocusable() || IsAccessibilityFocusableInRootView()) && HasFocus())
- canvas->DrawFocusRect(0, 0, width(), height());
+ canvas->DrawFocusRect(GetLocalBounds());
}
// Accelerated Painting --------------------------------------------------------