mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:04:57 +00:00
LibWeb: Move code to update HTMLInputElement's shadow tree to a helper
We currently copy-paste a series of if statements to selectively update the shadow tree elements for some <input> types. This will soon become longer as more shadow trees are implemented for other types. This patch just moves those checks to a single location to make adding more shadow trees easier.
This commit is contained in:
parent
5232afa13d
commit
8319c7cfb8
2 changed files with 26 additions and 18 deletions
|
@ -223,6 +223,7 @@ private:
|
|||
|
||||
static TypeAttributeState parse_type_attribute(StringView);
|
||||
void create_shadow_tree_if_needed();
|
||||
void update_shadow_tree();
|
||||
void create_text_input_shadow_tree();
|
||||
void create_color_input_shadow_tree();
|
||||
void create_range_input_shadow_tree();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue