mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-27 14:58:46 +00:00
LibWeb: Don't drop entire layout tree on <input type=file> update
This was completely unnecessary, and we can just let the internal DOM tree changes trigger partial layout updates instead. Noticed we were repeatedly dropping layout trees on ChatGPT and this was one of the culprits.
This commit is contained in:
parent
6c6f9936e2
commit
180a58b3d2
Notes:
github-actions[bot]
2025-03-08 02:38:33 +00:00
Author: https://github.com/awesomekling
Commit: 180a58b3d2
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3852
2 changed files with 1 additions and 4 deletions
|
@ -1128,8 +1128,6 @@ void HTMLInputElement::update_file_input_shadow_tree()
|
|||
} else {
|
||||
m_file_label->set_text_content(MUST(String::formatted("No {} selected.", files_label)));
|
||||
}
|
||||
|
||||
document().invalidate_layout_tree(DOM::InvalidateLayoutTreeReason::UpdateFileInputShadowTree);
|
||||
}
|
||||
|
||||
void HTMLInputElement::create_range_input_shadow_tree()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue