| Index: cc/resources/picture.cc
|
| diff --git a/cc/resources/picture.cc b/cc/resources/picture.cc
|
| index 867a86a6a544a926263643ac96ccc3d2faf0d614..e88ff21dc42076570a14aa2b71562182298da2f7 100644
|
| --- a/cc/resources/picture.cc
|
| +++ b/cc/resources/picture.cc
|
| @@ -213,11 +213,7 @@ void Picture::Record(ContentLayerClient* painter,
|
| canvas->translate(SkFloatToScalar(-layer_rect_.x()),
|
| SkFloatToScalar(-layer_rect_.y()));
|
|
|
| - SkRect layer_skrect = SkRect::MakeXYWH(layer_rect_.x(),
|
| - layer_rect_.y(),
|
| - layer_rect_.width(),
|
| - layer_rect_.height());
|
| - canvas->clipRect(layer_skrect);
|
| + canvas->clipRect(gfx::RectToSkRect(layer_rect_));
|
|
|
| painter->PaintContents(canvas.get(), layer_rect_, painting_control);
|
|
|
|
|