| Index: ui/gfx/canvas_direct2d.cc
|
| diff --git a/ui/gfx/canvas_direct2d.cc b/ui/gfx/canvas_direct2d.cc
|
| index 53cd6a1874842724b84871d0fa8b862e944b6151..f824b4defaf82df4cf0d27c4ef44c1bb6269741b 100644
|
| --- a/ui/gfx/canvas_direct2d.cc
|
| +++ b/ui/gfx/canvas_direct2d.cc
|
| @@ -173,13 +173,13 @@ void CanvasDirect2D::Restore() {
|
| rt_->RestoreDrawingState(drawing_state_block_);
|
| }
|
|
|
| -bool CanvasDirect2D::ClipRectInt(int x, int y, int w, int h) {
|
| - rt_->PushAxisAlignedClip(RectToRectF(x, y, w, h),
|
| +bool CanvasDirect2D::ClipRectInt(const gfx::Rect& rect) {
|
| + rt_->PushAxisAlignedClip(RectToRectF(rect),
|
| D2D1_ANTIALIAS_MODE_PER_PRIMITIVE);
|
| // Increment the clip count so the call to PushAxisAlignedClip() can be
|
| // balanced with a call to PopAxisAlignedClip in the next Restore().
|
| ++state_.top().clip_count;
|
| - return w > 0 && h > 0;
|
| + return !rect.IsEmpty();
|
| }
|
|
|
| void CanvasDirect2D::TranslateInt(int x, int y) {
|
|
|