Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Unified Diff: mash/wm/shadow.cc

Issue 1889153002: cc: nine patch: add occlusion support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix int/size_t compilation issue Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mash/wm/shadow.cc
diff --git a/mash/wm/shadow.cc b/mash/wm/shadow.cc
index b18873487f750467a20594ec41e88d9b7be6607e..5de5c452fa1296f2f1d320d75f01319949f77724 100644
--- a/mash/wm/shadow.cc
+++ b/mash/wm/shadow.cc
@@ -199,8 +199,8 @@ void Shadow::UpdateLayerBounds() {
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_));
}
void Shadow::OnWindowDestroyed(mus::Window* window) {

Powered by Google App Engine
This is Rietveld 408576698