mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02: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:
committed by
Alexander Kalenik
parent
6c6f9936e2
commit
180a58b3d2
Notes:
github-actions[bot]
2025-03-08 02:38:33 +00:00
Author: https://github.com/awesomekling Commit: https://github.com/LadybirdBrowser/ladybird/commit/180a58b3d29 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3852
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user