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

Unified Diff: components/exo/shell_surface.cc

Issue 2870613002: Use defualt shadow elevation. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 0e993ba5ef8bffbe2de8e8dffd029a69e217f66a..3ae5cbf7e5c755550cf7455509a8ecca8f5471cc 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -1593,7 +1593,7 @@ void ShellSurface::UpdateShadow() {
if (shadow_underlay_)
shadow_underlay_->Hide();
} else {
- wm::SetShadowElevation(window, wm::ShadowElevation::MEDIUM);
+ wm::SetShadowElevation(window, wm::ShadowElevation::DEFAULT);
gfx::Rect shadow_content_bounds =
gfx::ScaleToEnclosedRect(shadow_content_bounds_, 1.f / scale_);
@@ -1727,9 +1727,6 @@ void ShellSurface::UpdateShadow() {
// small style shadow for them.
if (!activatable_)
shadow->SetElevation(wm::ShadowElevation::SMALL);
- // We don't have rounded corners unless frame is enabled.
- if (!frame_enabled_)
- shadow->SetRoundedCornerRadius(0);
oshima 2017/05/08 11:22:02 This is causing b/37254594
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698