Title: [270809] trunk/Source/WebCore
Revision
270809
Author
[email protected]
Date
2020-12-14 16:19:29 -0800 (Mon, 14 Dec 2020)

Log Message

REGRESSION (r268604): fast/layoutformattingcontext/table-basic-row-vertical-align-baseline.html is a flaky crash
https://bugs.webkit.org/show_bug.cgi?id=219369
<rdar://problem/69985187>

Reviewed by Zalan Bujtas.

During TestController::resetStateToConsistentValues() there are lots of calls to
WebPage::preferencesDidChange() via the async IPC, and for some of those calls both
layoutFormattingContextIntegrationEnabled and layoutFormattingContextEnabled are true. If
Display::view() does a paint at that time, then we hit assertions because these
two settings are incompatible with eachother.

Fix by bailing from display if layoutFormattingContextIntegrationEnabled() is set.

* display/DisplayView.cpp:
(WebCore::Display::View::prepareForDisplay):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (270808 => 270809)


--- trunk/Source/WebCore/ChangeLog	2020-12-15 00:14:11 UTC (rev 270808)
+++ trunk/Source/WebCore/ChangeLog	2020-12-15 00:19:29 UTC (rev 270809)
@@ -1,3 +1,22 @@
+2020-12-14  Simon Fraser  <[email protected]>
+
+        REGRESSION (r268604): fast/layoutformattingcontext/table-basic-row-vertical-align-baseline.html is a flaky crash
+        https://bugs.webkit.org/show_bug.cgi?id=219369
+        <rdar://problem/69985187>
+
+        Reviewed by Zalan Bujtas.
+
+        During TestController::resetStateToConsistentValues() there are lots of calls to
+        WebPage::preferencesDidChange() via the async IPC, and for some of those calls both
+        layoutFormattingContextIntegrationEnabled and layoutFormattingContextEnabled are true. If
+        Display::view() does a paint at that time, then we hit assertions because these
+        two settings are incompatible with eachother.
+
+        Fix by bailing from display if layoutFormattingContextIntegrationEnabled() is set.
+
+        * display/DisplayView.cpp:
+        (WebCore::Display::View::prepareForDisplay):
+
 2020-12-14  Chris Dumez  <[email protected]>
 
         Unreviewed, reverting r270768.

Modified: trunk/Source/WebCore/display/DisplayView.cpp (270808 => 270809)


--- trunk/Source/WebCore/display/DisplayView.cpp	2020-12-15 00:14:11 UTC (rev 270808)
+++ trunk/Source/WebCore/display/DisplayView.cpp	2020-12-15 00:19:29 UTC (rev 270809)
@@ -34,6 +34,7 @@
 #include "FrameView.h"
 #include "LayoutContainerBox.h"
 #include "Page.h"
+#include "RuntimeEnabledFeatures.h"
 #include <wtf/IsoMallocInlines.h>
 
 namespace WebCore {
@@ -72,6 +73,10 @@
     if (!layoutState)
         return;
 
+    // Workaround for webkit.org/b/219369
+    if (RuntimeEnabledFeatures::sharedFeatures().layoutFormattingContextIntegrationEnabled())
+        return;
+
     auto treeBuilder = TreeBuilder { deviceScaleFactor() };
     m_displayTree = treeBuilder.build(*layoutState);
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to