Title: [249558] trunk/Source/WebKitLegacy/win
Revision
249558
Author
[email protected]
Date
2019-09-05 18:45:01 -0700 (Thu, 05 Sep 2019)

Log Message

[WinCairo][WK1] ASSERTION FAILED: !isAcceleratedCompositing() in WebView::updateBackingStore
https://bugs.webkit.org/show_bug.cgi?id=201493

Reviewed by Don Olmstead.

WebView::paint switches painting code path by checking accelerated
compositing enabled. However, accelerated compositing could be
enabled after the checking.

WebView::paint called WebView::paintCompositedContentToHDC and
WebCore::Page::updateRendering.
WebView::paintCompositedContentToHDC checks accelerated
compositing enabled. Then, WebCore::Page::updateRendering executes
_javascript_ and accelerated compositing could be enabled.

* WebView.cpp:
(WebView::paint): Call WebCore::Page::updateRendering the
beginning of the function.

Modified Paths

Diff

Modified: trunk/Source/WebKitLegacy/win/ChangeLog (249557 => 249558)


--- trunk/Source/WebKitLegacy/win/ChangeLog	2019-09-06 01:07:01 UTC (rev 249557)
+++ trunk/Source/WebKitLegacy/win/ChangeLog	2019-09-06 01:45:01 UTC (rev 249558)
@@ -1,3 +1,24 @@
+2019-09-05  Fujii Hironori  <[email protected]>
+
+        [WinCairo][WK1] ASSERTION FAILED: !isAcceleratedCompositing() in WebView::updateBackingStore
+        https://bugs.webkit.org/show_bug.cgi?id=201493
+
+        Reviewed by Don Olmstead.
+
+        WebView::paint switches painting code path by checking accelerated
+        compositing enabled. However, accelerated compositing could be
+        enabled after the checking.
+
+        WebView::paint called WebView::paintCompositedContentToHDC and
+        WebCore::Page::updateRendering.
+        WebView::paintCompositedContentToHDC checks accelerated
+        compositing enabled. Then, WebCore::Page::updateRendering executes
+        _javascript_ and accelerated compositing could be enabled.
+
+        * WebView.cpp:
+        (WebView::paint): Call WebCore::Page::updateRendering the
+        beginning of the function.
+
 2019-09-03  Antti Koivisto  <[email protected]>
 
         Remove redundant painting phase arguments from GraphicsLayerClient functions

Modified: trunk/Source/WebKitLegacy/win/WebView.cpp (249557 => 249558)


--- trunk/Source/WebKitLegacy/win/WebView.cpp	2019-09-06 01:07:01 UTC (rev 249557)
+++ trunk/Source/WebKitLegacy/win/WebView.cpp	2019-09-06 01:45:01 UTC (rev 249558)
@@ -1284,13 +1284,13 @@
 {
     LOCAL_GDI_COUNTER(0, __FUNCTION__);
 
+    m_page->updateRendering();
+
     if (paintCompositedContentToHDC(dc)) {
         ::ValidateRect(m_viewWindow, nullptr);
         return;
     }
 
-    m_page->updateRendering();
-
     Frame* coreFrame = core(m_mainFrame);
     if (!coreFrame)
         return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to