| Index: views/view.cc
|
| diff --git a/views/view.cc b/views/view.cc
|
| index e4ffbe893d291461725a40e81b88e1120a7ae320..2d4a60d712628d5c27e70db66090a72f1b17d1a5 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 --------------------------------------------------------
|
|
|