⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 293147 in webkit


Ignore:
Timestamp:
Apr 21, 2022, 1:39:33 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

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

Patch by Rob Buis <​rbuis@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):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r293138 r293147  
     12022-04-21  Rob Buis  <rbuis@igalia.com>
     2
     3        Skip release assert during container query resolution
     4        https://bugs.webkit.org/show_bug.cgi?id=239537
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Skip release assert during container query resolution
     9        since resolveStyle will be a no-op as the container
     10        query resolution was started in resolveStyle, so calling
     11        resolveStyle the second time will bail right away.
     12
     13        * dom/Document.cpp:
     14        (WebCore::Document::updateStyleIfNeeded):
     15
    1162022-04-20  Chris Dumez  <cdumez@apple.com>
    217
  • trunk/Source/WebCore/dom/Document.cpp

    r293059 r293147  
    21922192bool Document::updateStyleIfNeeded()
    21932193{
     2194    if (topDocument().isResolvingContainerQueries())
     2195        return false;
    21942196    RefPtr<FrameView> frameView = view();
    21952197    {
Note: See TracChangeset for help on using the changeset viewer.