mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibWeb: Don't filter CSS rules into separate list based on @namespace
Instead, perform the filtering for each rule as we go. This avoids creating a separate list of rules, which was ~5% of runtime when mousing around on the Discord web interface.
This commit is contained in:
parent
bb39ca9b4a
commit
cf9565551a
2 changed files with 13 additions and 22 deletions
|
@ -174,8 +174,6 @@ private:
|
|||
void build_rule_cache();
|
||||
void build_rule_cache_if_needed() const;
|
||||
|
||||
Vector<MatchingRule> filter_namespace_rules(DOM::Element const&, Vector<MatchingRule> const&) const;
|
||||
|
||||
JS::NonnullGCPtr<DOM::Document> m_document;
|
||||
|
||||
struct AnimationKeyFrameSet {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue