LibWeb: Refactor input color internal element updates to separate method

This commit is contained in:
Bastiaan van der Plaat 2024-01-18 20:17:47 +01:00 committed by Andreas Kling
commit c45ba50349
Notes: sideshowbarker 2024-07-17 10:08:28 +09:00
2 changed files with 25 additions and 16 deletions

View file

@ -223,10 +223,12 @@ private:
JS::GCPtr<DOM::Text> m_placeholder_text_node;
JS::GCPtr<DOM::Element> m_inner_text_element;
JS::GCPtr<DOM::Element> m_color_well_element;
JS::GCPtr<DOM::Text> m_text_node;
bool m_checked { false };
void update_color_well_element();
JS::GCPtr<DOM::Element> m_color_well_element;
void update_slider_thumb_element();
JS::GCPtr<DOM::Element> m_slider_thumb;