| 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 f881a6042a874b94b9ee6295408a6c25b0d0dcb8..6076e8c8a0eb17657e844f3f062a4385b47ff1f5 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -3864,14 +3864,19 @@ IntPoint FrameView::convertFromContainingWidgetToScrollbar(const Scrollbar& scro
|
| return newPoint;
|
| }
|
|
|
| +static void setNeedsCompositingUpdate(LayoutViewItem layoutViewItem, CompositingUpdateType updateType)
|
| +{
|
| + if (PaintLayerCompositor* compositor = !layoutViewItem.isNull() ? layoutViewItem.compositor() : nullptr)
|
| + compositor->setNeedsCompositingUpdate(updateType);
|
| +}
|
| +
|
| 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 = !layoutViewItem().isNull() ? layoutViewItem().compositor() : nullptr)
|
| - compositor->setNeedsCompositingUpdate(CompositingUpdateRebuildTree);
|
| + setNeedsCompositingUpdate(layoutViewItem(), CompositingUpdateRebuildTree);
|
|
|
| Widget::setParentVisible(visible);
|
|
|
| @@ -3886,6 +3891,7 @@ void FrameView::show()
|
| {
|
| if (!isSelfVisible()) {
|
| setSelfVisible(true);
|
| + setNeedsCompositingUpdate(layoutViewItem(), CompositingUpdateRebuildTree);
|
| updateScrollableAreaSet();
|
| if (isParentVisible()) {
|
| for (const auto& child : m_children)
|
| @@ -3904,6 +3910,7 @@ void FrameView::hide()
|
| child->setParentVisible(false);
|
| }
|
| setSelfVisible(false);
|
| + setNeedsCompositingUpdate(layoutViewItem(), CompositingUpdateRebuildTree);
|
| updateScrollableAreaSet();
|
| }
|
|
|
|
|