Fix cause of viewport-related flakiness in iOS tests
[WebKit.git] / Source / WebKit2 / UIProcess / ios / WKContentView.mm
index 1238e62..9d432d3 100644 (file)
@@ -393,6 +393,7 @@ private:
         WebCore::FloatSize(obscuredInset),
         zoomScale,
         isStableState,
+        _sizeChangedSinceLastVisibleContentRectUpdate,
         isChangingObscuredInsetsInteractively,
         _webView._allowsViewportShrinkToFit,
         enclosedInScrollableAncestorView,
@@ -406,6 +407,8 @@ private:
 
     _page->updateVisibleContentRects(visibleContentRectUpdateInfo);
 
+    _sizeChangedSinceLastVisibleContentRectUpdate = NO;
+
     FloatRect fixedPositionRect = _page->computeCustomFixedPositionRect(_page->unobscuredContentRect(), _page->customFixedPositionRect(), zoomScale, WebPageProxy::UnobscuredRectConstraint::Unconstrained, scrollingCoordinator->visualViewportEnabled());
     scrollingCoordinator->viewportChangedViaDelegatedScrolling(scrollingCoordinator->rootScrollingNodeID(), fixedPositionRect, zoomScale);