| Index: ui/wm/core/shadow.cc
|
| diff --git a/ui/wm/core/shadow.cc b/ui/wm/core/shadow.cc
|
| index 26ebde6ee3335b2b3bfa4756317c07c69d342543..78853435c6cc81720b66c08c0bf0c2268b8b885b 100644
|
| --- a/ui/wm/core/shadow.cc
|
| +++ b/ui/wm/core/shadow.cc
|
| @@ -195,13 +195,12 @@ void Shadow::UpdateLayerBounds() {
|
| gfx::Rect(aperture_x, aperture_y, aperture_x * 2, aperture_y * 2));
|
|
|
| // The content bounds in the shadow's layer space are offsetted by
|
| - // |interior_inset_|. The occlusion area also has to be shrinked to
|
| - // allow rounded corners overdrawing on top of the window's content.
|
| - gfx::Rect content_bounds(
|
| - content_bounds_.x() + interior_inset_ + kRoundedCornerRadius,
|
| - content_bounds_.y() + interior_inset_ + kRoundedCornerRadius,
|
| - content_bounds_.width() - 2 * kRoundedCornerRadius,
|
| - content_bounds_.height() - 2 * kRoundedCornerRadius);
|
| + // |interior_inset_|. The occlusion area also has to be shrunk to allow
|
| + // rounded corners overdrawing on top of the window's content.
|
| + gfx::Rect content_bounds(interior_inset_ + kRoundedCornerRadius,
|
| + interior_inset_ + kRoundedCornerRadius,
|
| + content_bounds_.width() - 2 * kRoundedCornerRadius,
|
| + content_bounds_.height() - 2 * kRoundedCornerRadius);
|
| shadow_layer_->UpdateNinePatchOcclusion(content_bounds);
|
| }
|
|
|
|
|