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

Changeset 286599 in webkit


Ignore:
Timestamp:
Dec 7, 2021, 10:20:17 AM (5 years ago)
Author:
Antti Koivisto
Message:

Assertion after removing stylesheet with loading @import rule
https://bugs.webkit.org/show_bug.cgi?id=233928

Reviewed by Alan Bujtas.

Source/WebCore:

Tests: fast/css/import-and-remove-assert.html

  • dom/InlineStyleSheetOwner.cpp:

(WebCore::InlineStyleSheetOwner::removedFromDocument):

Ensure we notify Style::Scope

LayoutTests:

  • fast/css/import-and-remove-assert-expected.txt: Added.
  • fast/css/import-and-remove-assert.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r286593 r286599  
     12021-12-07  Antti Koivisto  <antti@apple.com>
     2
     3        Assertion after removing stylesheet with loading @import rule
     4        https://bugs.webkit.org/show_bug.cgi?id=233928
     5
     6        Reviewed by Alan Bujtas.
     7
     8        * fast/css/import-and-remove-assert-expected.txt: Added.
     9        * fast/css/import-and-remove-assert.html: Added.
     10
    1112021-12-03  Sergio Villar Senin  <svillar@igalia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r286598 r286599  
     12021-12-07  Antti Koivisto  <antti@apple.com>
     2
     3        Assertion after removing stylesheet with loading @import rule
     4        https://bugs.webkit.org/show_bug.cgi?id=233928
     5
     6        Reviewed by Alan Bujtas.
     7
     8        Tests: fast/css/import-and-remove-assert.html
     9
     10        * dom/InlineStyleSheetOwner.cpp:
     11        (WebCore::InlineStyleSheetOwner::removedFromDocument):
     12
     13        Ensure we notify Style::Scope
     14
    1152021-12-07  Antti Koivisto  <antti@apple.com>
    216
  • trunk/Source/WebCore/dom/InlineStyleSheetOwner.cpp

    r286136 r286599  
    9797{
    9898    if (m_styleScope) {
     99        if (m_sheet && m_sheet->isLoading())
     100            m_styleScope->removePendingSheet(element);
    99101        m_styleScope->removeStyleSheetCandidateNode(element);
    100102        m_styleScope = nullptr;
Note: See TracChangeset for help on using the changeset viewer.