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()) |