mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 02:40:49 +00:00
LibWeb/HTML: Add fastpath to skip selectedness update on children change
We can definitely expand on this a bunch more, but using the metadata provided in the children change notification we are able to skip runnning the expensive selectedness algorithm on the <select> element. This removes children changed from appearing in the profile of: https://wpt.live/html/select/options-length-too-large.html
This commit is contained in:
committed by
Andrew Kaster
parent
903c8860f8
commit
075c7ea63e
@@ -110,6 +110,7 @@ private:
|
||||
virtual void computed_properties_changed() override;
|
||||
|
||||
virtual void children_changed(ChildrenChangedMetadata const*) override;
|
||||
bool can_skip_children_changed_selectedness_update(ChildrenChangedMetadata const& metadata) const;
|
||||
|
||||
void update_cached_list_of_options() const;
|
||||
void show_the_picker_if_applicable();
|
||||
|
||||
Reference in New Issue
Block a user