LibGUI: Remove parent parameter to GUI::Widget constructor

This commit is contained in:
Andreas Kling 2020-02-23 12:07:13 +01:00
parent 4ce28c32d1
commit c5d913970a
Notes: sideshowbarker 2024-07-19 09:08:33 +09:00
114 changed files with 207 additions and 313 deletions

View file

@ -63,7 +63,7 @@ RefPtr<LayoutNode> HTMLInputElement::create_layout_node(const StyleProperties*)
};
widget = button;
} else {
auto text_box = GUI::TextBox::construct(&html_view);
auto text_box = html_view.add<GUI::TextBox>();
text_box->set_text(value());
text_box->on_change = [this] {
auto& widget = to<LayoutWidget>(layout_node())->widget();