Changeset 280586 in webkit
- Timestamp:
- Aug 3, 2021, 12:38:08 AM (5 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/shadow-dom/shadow-tree-removal-crash-expected.txt (added)
-
LayoutTests/fast/shadow-dom/shadow-tree-removal-crash.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/style/StyleScope.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r280584 r280586 1 2021-08-03 Rob Buis <rbuis@igalia.com> 2 3 Check that shadow root is connected in invalidateStyleAfterStyleSheetChange 4 https://bugs.webkit.org/show_bug.cgi?id=227383 5 6 Reviewed by Antti Koivisto. 7 8 Add test for this. 9 10 * fast/shadow-dom/shadow-tree-removal-crash-expected.txt: Added. 11 * fast/shadow-dom/shadow-tree-removal-crash.html: Added. 12 1 13 2021-08-02 Jean-Yves Avenard <jya@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r280585 r280586 1 2021-08-03 Rob Buis <rbuis@igalia.com> 2 3 Check that shadow root is connected in invalidateStyleAfterStyleSheetChange 4 https://bugs.webkit.org/show_bug.cgi?id=227383 5 6 Reviewed by Antti Koivisto. 7 8 Check that shadow root is connected in invalidateStyleAfterStyleSheetChange. 9 10 Test: fast/shadow-dom/shadow-tree-removal-crash.html 11 12 * style/StyleScope.cpp: 13 (WebCore::Style::Scope::updateActiveStyleSheets): 14 1 15 2021-08-02 Frédéric Wang <fwang@igalia.com> 2 16 -
trunk/Source/WebCore/style/StyleScope.cpp
r280112 r280586 525 525 void Scope::invalidateStyleAfterStyleSheetChange(const StyleSheetChange& styleSheetChange) 526 526 { 527 if (m_shadowRoot && !m_shadowRoot->isConnected()) 528 return; 529 527 530 // If we are already parsing the body and so may have significant amount of elements, put some effort into trying to avoid style recalcs. 528 531 bool invalidateAll = !m_document.bodyOrFrameset() || m_document.hasNodesWithNonFinalStyle() || m_document.hasNodesWithMissingStyle();
Note:
See TracChangeset
for help on using the changeset viewer.