Commit 28479f25 authored by Antonio Gomes's avatar Antonio Gomes Committed by Commit Bot

Drop superfluous check at ShadowController::Impl::HandlePossibleShadowVisibilityChange()

  if (bleh) {
    (...)
  } else if (!bleh) {
    (...)
  }

BUG=None
R=sky@chromium.org

Change-Id: I7e303732499e1cfc77a23e08186a921612cbff27
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2346608
Auto-Submit: Antonio Gomes (GMT-4) <tonikitoo@igalia.com>
Commit-Queue: Scott Violet <sky@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796874}
parent 659a4e4e
...@@ -264,7 +264,7 @@ void ShadowController::Impl::HandlePossibleShadowVisibilityChange( ...@@ -264,7 +264,7 @@ void ShadowController::Impl::HandlePossibleShadowVisibilityChange(
if (shadow) { if (shadow) {
shadow->SetElevation(GetShadowElevationForActiveState(window)); shadow->SetElevation(GetShadowElevationForActiveState(window));
shadow->layer()->SetVisible(should_show); shadow->layer()->SetVisible(should_show);
} else if (should_show && !shadow) { } else if (should_show) {
CreateShadowForWindow(window); CreateShadowForWindow(window);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment