[PSON] Avoid tearing down the drawing area when suspending a WebPage due to process...
[WebKit-https.git] / Source / WebKit / WebProcess / WebPage / RemoteLayerTree / RemoteScrollingCoordinator.mm
index 33d8dfd..18ef164 100644 (file)
@@ -61,8 +61,7 @@ RemoteScrollingCoordinator::~RemoteScrollingCoordinator()
 
 void RemoteScrollingCoordinator::scheduleTreeStateCommit()
 {
-    if (auto* drawingArea = m_webPage->drawingArea())
-        drawingArea->scheduleCompositingLayerFlush();
+    m_webPage->drawingArea()->scheduleCompositingLayerFlush();
 }
 
 bool RemoteScrollingCoordinator::coordinatesScrollingForFrameView(const FrameView& frameView) const