| Index: ui/views/view.cc
|
| diff --git a/ui/views/view.cc b/ui/views/view.cc
|
| index 0fc755972d6d57de055a7ea9d31fa11733eaf13b..81f0a920116d6a36c08b713aa57d949880e495c2 100644
|
| --- a/ui/views/view.cc
|
| +++ b/ui/views/view.cc
|
| @@ -1365,8 +1365,8 @@ void View::OnPaint(gfx::Canvas* canvas) {
|
| void View::OnPaintBackground(gfx::Canvas* canvas) {
|
| if (background_.get()) {
|
| TRACE_EVENT2("views", "View::OnPaintBackground",
|
| - "width", canvas->sk_canvas()->getDevice()->width(),
|
| - "height", canvas->sk_canvas()->getDevice()->height());
|
| + "width", canvas->sk_canvas()->getBaseLayerSize().width(),
|
| + "height", canvas->sk_canvas()->getBaseLayerSize().height());
|
| background_->Paint(canvas, this);
|
| }
|
| }
|
| @@ -1374,8 +1374,8 @@ void View::OnPaintBackground(gfx::Canvas* canvas) {
|
| void View::OnPaintBorder(gfx::Canvas* canvas) {
|
| if (border_.get()) {
|
| TRACE_EVENT2("views", "View::OnPaintBorder",
|
| - "width", canvas->sk_canvas()->getDevice()->width(),
|
| - "height", canvas->sk_canvas()->getDevice()->height());
|
| + "width", canvas->sk_canvas()->getBaseLayerSize().width(),
|
| + "height", canvas->sk_canvas()->getBaseLayerSize().height());
|
| border_->Paint(*this, canvas);
|
| }
|
| }
|
|
|