| 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 0c7d4f33b61ec7012e09c88861a90ec23c3fdbd6..e3ac2b8c1115b9edba4b193e6ef9a1cc971948ea 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -4427,6 +4427,11 @@ void FrameView::show() {
|
| scrollingCoordinator->frameViewVisibilityDidChange();
|
| setNeedsCompositingUpdate(layoutViewItem(), CompositingUpdateRebuildTree);
|
| updateParentScrollableAreaSet();
|
| + if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
|
| + // The existance of scrolling properties depends on visibility through
|
| + // isScrollable() so ensure properties are updated if visibility changes.
|
| + setNeedsPaintPropertyUpdate();
|
| + }
|
| if (isParentVisible()) {
|
| for (const auto& child : m_children)
|
| child->setParentVisible(true);
|
| @@ -4448,6 +4453,11 @@ void FrameView::hide() {
|
| scrollingCoordinator->frameViewVisibilityDidChange();
|
| setNeedsCompositingUpdate(layoutViewItem(), CompositingUpdateRebuildTree);
|
| updateParentScrollableAreaSet();
|
| + if (RuntimeEnabledFeatures::slimmingPaintInvalidationEnabled()) {
|
| + // The existance of scrolling properties depends on visibility through
|
| + // isScrollable() so ensure properties are updated if visibility changes.
|
| + setNeedsPaintPropertyUpdate();
|
| + }
|
| }
|
|
|
| Widget::hide();
|
|
|