Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: aa7df46954c45afbd6a19aec6344969f66d90f7d
https://github.com/WebKit/WebKit/commit/aa7df46954c45afbd6a19aec6344969f66d90f7d
Author: Chris Dumez <[email protected]>
Date: 2026-04-07 (Tue, 07 Apr 2026)
Changed paths:
M Source/WebCore/style/StyleTreeResolver.cpp
Log Message:
-----------
Simplify resetStyleForNonRenderedDescendants position option cleanup
https://bugs.webkit.org/show_bug.cgi?id=311633
Reviewed by Darin Adler.
Replace a two-pass approach (build a Vector of matching elements, then
removeIf with O(n) Vector::contains per entry) with a single removeIf
pass, reducing the complexity from O(n*m) to O(n) where n is the size
of m_positionOptions and m is the number of matching descendants.
* Source/WebCore/style/StyleTreeResolver.cpp:
(WebCore::Style::TreeResolver::resetStyleForNonRenderedDescendants):
Canonical link: https://commits.webkit.org/310751@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications