Chromium Code Reviews| Index: cc/output/filter_operations.cc |
| diff --git a/cc/output/filter_operations.cc b/cc/output/filter_operations.cc |
| index 8263518640b8a30f291febaba75dd92684e215aa..f0cca86f744548c58b57bf238c1d0dccb37c27f9 100644 |
| --- a/cc/output/filter_operations.cc |
| +++ b/cc/output/filter_operations.cc |
| @@ -110,10 +110,10 @@ void FilterOperations::GetOutsets(int* top, |
| *bottom += spread; |
| *left += spread; |
| } else { |
| - *top += spread - op.drop_shadow_offset().y(); |
| - *right += spread + op.drop_shadow_offset().x(); |
| - *bottom += spread + op.drop_shadow_offset().y(); |
| - *left += spread - op.drop_shadow_offset().x(); |
| + *top += std::max(0, spread - op.drop_shadow_offset().y()); |
|
enne (OOO)
2016/07/06 17:34:57
What if your drop shadow is up and to the left ins
jbroman
2016/07/06 17:37:32
I don't understand your question. No, it doesn't h
enne (OOO)
2016/07/06 17:57:18
*drinks more coffee* Oops, sorry about misreading
|
| + *right += std::max(0, spread + op.drop_shadow_offset().x()); |
| + *bottom += std::max(0, spread + op.drop_shadow_offset().y()); |
| + *left += std::max(0, spread - op.drop_shadow_offset().x()); |
| } |
| } |
| } |