From 6886c6efa60a2aeb431032b00bc8c358e2a61b6a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 4 May 2020 22:33:49 +0200 Subject: [PATCH] LibWeb: Don't generate a layout node for --- Libraries/LibWeb/DOM/HTMLInputElement.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 HTMLInputElement::create_layout_node(const StyleProperties*) ASSERT(frame.html_view()); auto& html_view = const_cast(*frame.html_view()); + if (type() == "hidden") + return nullptr; + RefPtr widget; if (type() == "submit") { auto& button = html_view.add(value());