Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 54e82182cec9a98db4b242b514812c9b2fb7459c
      
https://github.com/WebKit/WebKit/commit/54e82182cec9a98db4b242b514812c9b2fb7459c
  Author: Antti Koivisto <[email protected]>
  Date:   2026-06-15 (Mon, 15 Jun 2026)

  Changed paths:
    M Source/WebCore/style/RuleFeature.cpp
    M Source/WebCore/style/RuleSet.cpp
    M Source/WebCore/style/RuleSet.h
    M Source/WebCore/style/StyleResolver.cpp
    M Source/WebCore/style/StyleResolver.h
    M Source/WebCore/style/StyleScopeRuleSets.cpp

  Log Message:
  -----------
  Use ThreadSafeRefCounted in RuleSet and StyleResolver
https://bugs.webkit.org/show_bug.cgi?id=317125
rdar://179148151

Reviewed by Alan Baradlay.

Improve thread safety.
Also add some main thread asserts.

*
Source/WebCore/style/RuleFeature.cpp:
(WebCore::Style::RuleFeatureSet::collectFeatures):
(WebCore::Style::RuleFeatureSet::add):
(WebCore::Style::RuleFeatureSet::clear):
* Source/WebCore/style/RuleSet.cpp:
(WebCore::Style::RuleSet::~RuleSet):
* Source/WebCore/style/RuleSet.h:
* Source/WebCore/style/StyleResolver.cpp:
(WebCore::Style::Resolver::~Resolver):
* Source/WebCore/style/StyleResolver.h:
* Source/WebCore/style/StyleScopeRuleSets.cpp:
(WebCore::Style::ScopeRuleSets::collectFeatures const):

Canonical link: 
https://flagged.apple.com:443/proxy?t2=dn0U9o8Us0&o=aHR0cHM6Ly9jb21taXRzLndlYmtpdC5vcmcvMzE1MjIzQG1haW4=&emid=07256874-e432-4ab0-be27-52ac31d8298d&c=11



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to