| Index: ui/gfx/blit.cc
|
| diff --git a/ui/gfx/blit.cc b/ui/gfx/blit.cc
|
| index 0c6e6b6bca82466971c593695317bc1c385d6e48..9c628cb588b82b5d42dadf77eb9907dc8c31df90 100644
|
| --- a/ui/gfx/blit.cc
|
| +++ b/ui/gfx/blit.cc
|
| @@ -152,8 +152,8 @@ void ScrollCanvas(SkCanvas* canvas,
|
| SkAutoLockPixels lock(bitmap);
|
|
|
| // We expect all coords to be inside the canvas, so clip here.
|
| - gfx::Rect clip = in_clip;
|
| - clip.Intersect(gfx::Rect(0, 0, bitmap.width(), bitmap.height()));
|
| + gfx::Rect clip = gfx::Intersection(
|
| + in_clip, gfx::Rect(0, 0, bitmap.width(), bitmap.height()));
|
|
|
| // Compute the set of pixels we'll actually end up painting.
|
| gfx::Rect dest_rect = clip;
|
|
|