Index: content/browser/web_contents/web_contents_impl.cc |
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc |
index 8facc1cce53b243076e164dd366112ca66a89ed4..ac35758cfa95873705ec460fb5be2dd0d56f57ad 100644 |
--- a/content/browser/web_contents/web_contents_impl.cc |
+++ b/content/browser/web_contents/web_contents_impl.cc |
@@ -1951,9 +1951,9 @@ void WebContentsImpl::ForwardCompositorProto( |
} |
void WebContentsImpl::OnRenderFrameProxyVisibilityChanged(bool visible) { |
- if (visible) |
+ if (visible && !GetOuterWebContents()->IsHidden()) |
WasShown(); |
- else |
+ else if (!visible) |
WasHidden(); |
} |