Title: [293147] trunk/Source/WebCore
Revision
293147
Author
commit-qu...@webkit.org
Date
2022-04-21 01:39:33 -0700 (Thu, 21 Apr 2022)

Log Message

Skip release assert during container query resolution
https://bugs.webkit.org/show_bug.cgi?id=239537

Patch by Rob Buis <rb...@igalia.com> on 2022-04-21
Reviewed by Antti Koivisto.

Skip release assert during container query resolution
since resolveStyle will be a no-op as the container
query resolution was started in resolveStyle, so calling
resolveStyle the second time will bail right away.

* dom/Document.cpp:
(WebCore::Document::updateStyleIfNeeded):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (293146 => 293147)


--- trunk/Source/WebCore/ChangeLog	2022-04-21 05:28:31 UTC (rev 293146)
+++ trunk/Source/WebCore/ChangeLog	2022-04-21 08:39:33 UTC (rev 293147)
@@ -1,3 +1,18 @@
+2022-04-21  Rob Buis  <rb...@igalia.com>
+
+        Skip release assert during container query resolution
+        https://bugs.webkit.org/show_bug.cgi?id=239537
+
+        Reviewed by Antti Koivisto.
+
+        Skip release assert during container query resolution
+        since resolveStyle will be a no-op as the container
+        query resolution was started in resolveStyle, so calling
+        resolveStyle the second time will bail right away.
+
+        * dom/Document.cpp:
+        (WebCore::Document::updateStyleIfNeeded):
+
 2022-04-20  Chris Dumez  <cdu...@apple.com>
 
         Unreviewed follow-up to r293123 to address review feedback from Sam & Darin

Modified: trunk/Source/WebCore/dom/Document.cpp (293146 => 293147)


--- trunk/Source/WebCore/dom/Document.cpp	2022-04-21 05:28:31 UTC (rev 293146)
+++ trunk/Source/WebCore/dom/Document.cpp	2022-04-21 08:39:33 UTC (rev 293147)
@@ -2191,6 +2191,8 @@
 
 bool Document::updateStyleIfNeeded()
 {
+    if (topDocument().isResolvingContainerQueries())
+        return false;
     RefPtr<FrameView> frameView = view();
     {
         ScriptDisallowedScope::InMainThread scriptDisallowedScope;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to