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

Unified Diff: third_party/WebKit/Source/core/frame/RemoteFrameView.cpp

Issue 1414663011: Notifying the Out of Process Renderer about Visibility Change of a Remote Frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed "Guest" to "InnerContents" Created 5 years, 1 month 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: third_party/WebKit/Source/core/frame/RemoteFrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/RemoteFrameView.cpp b/third_party/WebKit/Source/core/frame/RemoteFrameView.cpp
index 1003baa05b3be3b5b076cc761df9bcbf0512a9d4..f9af706f214359b9ea21f100e99f10ca0d7d4369 100644
--- a/third_party/WebKit/Source/core/frame/RemoteFrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/RemoteFrameView.cpp
@@ -56,6 +56,37 @@ void RemoteFrameView::frameRectsChanged()
m_remoteFrame->frameRectsChanged(frameRect());
}
+void RemoteFrameView::hide()
+{
+ setSelfVisible(false);
+
+ Widget::hide();
+
+ m_remoteFrame->visibilityChanged(false);
+}
+
+void RemoteFrameView::show()
+{
+ setSelfVisible(true);
+
+ Widget::show();
+
+ m_remoteFrame->visibilityChanged(true);
+}
+
+void RemoteFrameView::setParentVisible(bool visible)
+{
+ if (isParentVisible() == visible)
+ return;
+
+ Widget::setParentVisible(visible);
+
+ if (!isSelfVisible())
+ return;
+
+ m_remoteFrame->visibilityChanged(isVisible());
dcheng 2015/12/02 00:15:05 I'm having trouble convincing myself this is corre
EhsanK 2015/12/07 16:10:15 I actually inferred the logic from here: https://c
+}
+
DEFINE_TRACE(RemoteFrameView)
{
visitor->trace(m_remoteFrame);

Powered by Google App Engine
This is Rietveld 408576698