diff options
author | Andreas Kling <kling@serenityos.org> | 2020-05-04 22:33:49 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-05-04 22:33:49 +0200 |
commit | 6886c6efa60a2aeb431032b00bc8c358e2a61b6a (patch) | |
tree | ef63f5b502c291deba4a96c87f255047c92dd268 /Libraries/LibWeb/DOM | |
parent | 8fae4ee931b2cdc6cddf1f24c0e68409a47131fe (diff) | |
download | serenity-6886c6efa60a2aeb431032b00bc8c358e2a61b6a.zip |
LibWeb: Don't generate a layout node for <input type="hidden">
Diffstat (limited to 'Libraries/LibWeb/DOM')
-rw-r--r-- | Libraries/LibWeb/DOM/HTMLInputElement.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Libraries/LibWeb/DOM/HTMLInputElement.cpp b/Libraries/LibWeb/DOM/HTMLInputElement.cpp index 78009d5329..34be76773f 100644 --- a/Libraries/LibWeb/DOM/HTMLInputElement.cpp +++ b/Libraries/LibWeb/DOM/HTMLInputElement.cpp @@ -52,6 +52,9 @@ RefPtr<LayoutNode> HTMLInputElement::create_layout_node(const StyleProperties*) ASSERT(frame.html_view()); auto& html_view = const_cast<HtmlView&>(*frame.html_view()); + if (type() == "hidden") + return nullptr; + RefPtr<GUI::Widget> widget; if (type() == "submit") { auto& button = html_view.add<GUI::Button>(value()); |