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 a9bb2ae9a77e2693e017881f3a95994fabf76048..af746edb84b7ab2ea792e6c4373ab70b4caa4c36 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(); |
} |