| Index: ui/views/view.cc
|
| diff --git a/ui/views/view.cc b/ui/views/view.cc
|
| index 46bb7be9d230e22aa84dff30ff9952cc16e9fbdf..438966142cafd32a7cd52d9240323db58afbe492 100644
|
| --- a/ui/views/view.cc
|
| +++ b/ui/views/view.cc
|
| @@ -1376,8 +1376,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);
|
| }
|
| }
|
| @@ -1385,8 +1385,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);
|
| }
|
| }
|
|
|