Unreviewed, fix ProcessSwap API tests after r235867.
authorcdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2018 01:35:44 +0000 (01:35 +0000)
committercdumez@apple.com <cdumez@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Sep 2018 01:35:44 +0000 (01:35 +0000)
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::exitAcceleratedCompositingMode):
Add null-check for drawing area.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235880 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit/ChangeLog
Source/WebKit/WebProcess/WebPage/WebPage.cpp

index cf06aef..8798d93 100644 (file)
@@ -1,3 +1,11 @@
+2018-09-10  Chris Dumez  <cdumez@apple.com>
+
+        Unreviewed, fix ProcessSwap API tests after r235867.
+
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::exitAcceleratedCompositingMode):
+        Add null-check for drawing area.
+
 2018-09-10  Wenson Hsieh  <wenson_hsieh@apple.com>
 
         [iOS] Unable to change the value of select elements while preserving focus state
index d87c7a8..b634cf5 100644 (file)
@@ -1141,7 +1141,8 @@ void WebPage::enterAcceleratedCompositingMode(GraphicsLayer* layer)
 
 void WebPage::exitAcceleratedCompositingMode()
 {
-    m_drawingArea->setRootCompositingLayer(0);
+    if (m_drawingArea)
+        m_drawingArea->setRootCompositingLayer(0);
 }
 
 void WebPage::close()