Chromium Code Reviews| Index: cc/layers/render_surface_impl.cc |
| diff --git a/cc/layers/render_surface_impl.cc b/cc/layers/render_surface_impl.cc |
| index 600206faa081522f815ead7ae6d41d0e912123d6..493adf9f70b539cf4a3d6d11e283219220f4b8e4 100644 |
| --- a/cc/layers/render_surface_impl.cc |
| +++ b/cc/layers/render_surface_impl.cc |
| @@ -50,6 +50,11 @@ gfx::RectF RenderSurfaceImpl::DrawableContentRect() const { |
| drawable_content_rect.Union(MathUtil::MapClippedRect( |
| replica_draw_transform_, gfx::RectF(content_rect_))); |
| } |
| + if (!owning_layer_->filters().IsEmpty()) { |
| + int left, top, right, bottom; |
| + owning_layer_->filters().GetOutsets(&top, &right, &bottom, &left); |
| + drawable_content_rect.Inset(-left, -top, -right, -bottom); |
|
enne (OOO)
2016/01/19 23:21:19
Should you do this before the replica unioning? Wh
Stephen White
2016/01/19 23:59:10
Good question. Will investigate.
Stephen White
2016/01/20 19:59:01
-webkit-box-reflect is non-standard, and doesn't s
|
| + } |
| // If the rect has a NaN coordinate, we return empty rect to avoid crashes in |
| // functions (for example, gfx::ToEnclosedRect) that are called on this rect. |