Index: ui/wm/core/shadow.cc |
diff --git a/ui/wm/core/shadow.cc b/ui/wm/core/shadow.cc |
index a5f736ae08057ec362c72b4cc0c7f4d13d1be1f7..dc80187fc9e7cecf210d97d690f9d80aabb8fe6b 100644 |
--- a/ui/wm/core/shadow.cc |
+++ b/ui/wm/core/shadow.cc |
@@ -182,12 +182,13 @@ void Shadow::UpdateLayerBounds() { |
int aperture = GetShadowApertureForStyle(style_); |
int aperture_x = std::min(aperture, layer_bounds.width() / 2); |
int aperture_y = std::min(aperture, layer_bounds.height() / 2); |
+ |
shadow_layer_->UpdateNinePatchLayerAperture( |
gfx::Rect(aperture_x, aperture_y, |
image_size_.width() - aperture_x * 2, |
image_size_.height() - aperture_y * 2)); |
- shadow_layer_->UpdateNinePatchLayerBorder( |
- gfx::Rect(aperture_x, aperture_y, aperture_x * 2, aperture_y * 2)); |
+ shadow_layer_->UpdateNinePatchOcclusion( |
+ content_bounds_ + gfx::Vector2d(interior_inset_, interior_inset_)); |
} |
} // namespace wm |