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..a3f45decc8ba109fd3b56ebe5b69b47aec2cba06 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()) |
@@ -3816,8 +3820,9 @@ void FrameView::show() |
setSelfVisible(true); |
updateScrollableAreaSet(); |
if (isParentVisible()) { |
- for (const auto& child : m_children) |
+ for (const auto& child : m_children) { |
chrishtr
2016/01/28 00:32:31
Remove curlies.
wkorman
2016/01/28 00:55:21
Done.
|
child->setParentVisible(true); |
+ } |
} |
} |