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

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

Issue 1616183002: Don't composite layers with an invisible frameview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add test expectation. Created 4 years, 11 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
Index: third_party/WebKit/Source/core/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index a6304a708559976dd77b0674c4d684c51db6b62f..8fd998469f2911b20aeab32156be4d00ed65c89d 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -3801,6 +3801,10 @@ void FrameView::setParentVisible(bool visible)
if (isParentVisible() == visible)
return;
+ // As parent visibility changes, we may need to recomposite this frame view and potentially child frame views.
+ if (PaintLayerCompositor* compositor = layoutView() ? layoutView()->compositor() : nullptr)
+ compositor->setNeedsCompositingUpdate(CompositingUpdateRebuildTree);
+
Widget::setParentVisible(visible);
if (!isSelfVisible())

Powered by Google App Engine
This is Rietveld 408576698