Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a64778e92200eb9030afd753c803f5623eead6f5
      
https://github.com/WebKit/WebKit/commit/a64778e92200eb9030afd753c803f5623eead6f5
  Author: Chris Dumez <[email protected]>
  Date:   2023-07-12 (Wed, 12 Jul 2023)

  Changed paths:
    M Source/WebCore/style/MatchedDeclarationsCache.cpp
    M Source/WebCore/style/MatchedDeclarationsCache.h
    M Source/WebCore/style/StyleResolver.cpp
    M Source/WebCore/style/StyleResolver.h

  Log Message:
  -----------
  Guard MatchedDeclarationsCache against destruction while modifying m_entries 
map
https://bugs.webkit.org/show_bug.cgi?id=259147
rdar://107338197

Reviewed by Antti Koivisto.

Guard MatchedDeclarationsCache against destruction while modifying m_entries 
map.
We suspect that MatchedDeclarationsCache is getting destroyed while modifying
m_entries inside sweep().

* Source/WebCore/style/MatchedDeclarationsCache.cpp:
(WebCore::Style::MatchedDeclarationsCache::MatchedDeclarationsCache):
(WebCore::Style::MatchedDeclarationsCache::ref):
(WebCore::Style::MatchedDeclarationsCache::deref):
(WebCore::Style::MatchedDeclarationsCache::clearEntriesAffectedByViewportUnits):
(WebCore::Style::MatchedDeclarationsCache::sweep):
* Source/WebCore/style/MatchedDeclarationsCache.h:
* Source/WebCore/style/StyleResolver.cpp:
(WebCore::Style::Resolver::Resolver):
* Source/WebCore/style/StyleResolver.h:

Canonical link: https://commits.webkit.org/265998@main


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to