mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb/HTML: Add fastpath to skip selectedness update on option insert
This extends the optimization introduced in the previous commit to also apply to the inserted steps for an option element. This makes the test: https://wpt.live/html/select/options-length-too-large.html Go from not ever completing due to how slow it was to running, to finishing in 800ms on my PC :^)
This commit is contained in:
committed by
Andrew Kaster
parent
075c7ea63e
commit
ebd6d49415
@@ -98,6 +98,8 @@ public:
|
||||
|
||||
void update_inner_text_element(Badge<HTMLOptionElement>);
|
||||
|
||||
bool can_skip_selectedness_update_for_inserted_option(HTMLOptionElement const&) const;
|
||||
|
||||
private:
|
||||
HTMLSelectElement(DOM::Document&, DOM::QualifiedName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user