| Index: cc/layers/render_surface_impl.cc
|
| diff --git a/cc/layers/render_surface_impl.cc b/cc/layers/render_surface_impl.cc
|
| index 57c2d908dcde9d85991faa98b15e149845c5dea6..0711d5462eba8096a327808d0435e375b29f3ae2 100644
|
| --- a/cc/layers/render_surface_impl.cc
|
| +++ b/cc/layers/render_surface_impl.cc
|
| @@ -75,9 +75,11 @@ gfx::RectF RenderSurfaceImpl::DrawableContentRect() const {
|
|
|
| gfx::Rect surface_content_rect = content_rect();
|
| if (!owning_layer_->filters().IsEmpty()) {
|
| - int left, top, right, bottom;
|
| - owning_layer_->filters().GetOutsets(&top, &right, &bottom, &left);
|
| - surface_content_rect.Inset(-left, -top, -right, -bottom);
|
| + const gfx::Transform& owning_layer_draw_transform =
|
| + owning_layer_->DrawTransform();
|
| + DCHECK(owning_layer_draw_transform.IsScale2d());
|
| + surface_content_rect = owning_layer_->filters().MapRect(
|
| + surface_content_rect, owning_layer_draw_transform.matrix());
|
| }
|
| gfx::RectF drawable_content_rect = MathUtil::MapClippedRect(
|
| draw_transform(), gfx::RectF(surface_content_rect));
|
|
|