| 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 5c8daac7b6ac0bc4e8d64bb70c4a93f61fe64d14..72a7fd0bbb85de81531096f5ab93f014ead86901 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -1483,6 +1483,23 @@ void FrameView::viewportSizeChanged(bool widthChanged, bool heightChanged) {
|
| lvi.setShouldDoFullPaintInvalidation();
|
| }
|
|
|
| + if (RuntimeEnabledFeatures::inertTopControlsEnabled() && layoutView() &&
|
| + layoutView()->style()->hasFixedBackgroundImage()) {
|
| + // In the case where we don't change layout size from top control resizes,
|
| + // we wont perform a layout. If we have a fixed background image however,
|
| + // the background layer needs to get resized so we should request a layout
|
| + // explicitly.
|
| + PaintLayer* layer = layoutView()->layer();
|
| + if (layoutView()->compositor()->needsFixedRootBackgroundLayer(layer)) {
|
| + setNeedsLayout();
|
| + } else if (!RuntimeEnabledFeatures::rootLayerScrollingEnabled()) {
|
| + // If root layer scrolls is on, we've already issued a full invalidation
|
| + // above.
|
| + layoutView()->setShouldDoFullPaintInvalidationOnResizeIfNeeded(
|
| + widthChanged, heightChanged);
|
| + }
|
| + }
|
| +
|
| if (!hasViewportConstrainedObjects())
|
| return;
|
|
|
|
|