[webkit-changes] [WebKit/WebKit] 7270cc: m_styleSheetCandidateNodes in StyleScope should be...
Ryosuke Niwa
noreply at github.com
Wed Feb 1 10:27:57 PST 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7270cc8dcf9c1c980f1a864a41c71bdbab1b6b52
https://github.com/WebKit/WebKit/commit/7270cc8dcf9c1c980f1a864a41c71bdbab1b6b52
Author: Ryosuke Niwa <rniwa at webkit.org>
Date: 2023-02-01 (Wed, 01 Feb 2023)
Changed paths:
M Source/WTF/wtf/WeakListHashSet.h
M Source/WebCore/style/StyleScope.cpp
M Source/WebCore/style/StyleScope.h
M Tools/TestWebKitAPI/Tests/WTF/WeakPtr.cpp
Log Message:
-----------
m_styleSheetCandidateNodes in StyleScope should be WeakListHashSet
https://bugs.webkit.org/show_bug.cgi?id=251402
Reviewed by Antti Koivisto.
Deployed WeakListHashSet for m_styleSheetCandidateNodes in StyleScope.
* Source/WTF/wtf/WeakListHashSet.h:
(WTF::WeakListHashSet::WeakListHashSetIteratorBase::WeakListHashSetIteratorBase):
(WTF::WeakListHashSet::WeakListHashSetIteratorBase::advanceBackwards): Added.
(WTF::WeakListHashSet::WeakListHashSetConstIterator::operator--): Added.
(WTF::WeakListHashSet::WeakListHashSetIterator::operator--): Added.
* Source/WebCore/style/StyleScope.cpp:
(WebCore::Style::Scope::addStyleSheetCandidateNode):
(WebCore::Style::Scope::removeStyleSheetCandidateNode):
(WebCore::Style::Scope::collectXSLTransforms):
(WebCore::Style::Scope::collectActiveStyleSheets):
* Source/WebCore/style/StyleScope.h:
* Tools/TestWebKitAPI/Tests/WTF/WeakPtr.cpp:
(WTF_WeakPtr.WeakListHashSetIterators):
Canonical link: https://commits.webkit.org/259698@main
More information about the webkit-changes
mailing list