mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:58:13 +00:00
LibWeb: Don't generate a layout node for <input type="hidden">
This commit is contained in:
parent
8fae4ee931
commit
6886c6efa6
1 changed files with 3 additions and 0 deletions
|
@ -52,6 +52,9 @@ RefPtr<LayoutNode> HTMLInputElement::create_layout_node(const StyleProperties*)
|
||||||
ASSERT(frame.html_view());
|
ASSERT(frame.html_view());
|
||||||
auto& html_view = const_cast<HtmlView&>(*frame.html_view());
|
auto& html_view = const_cast<HtmlView&>(*frame.html_view());
|
||||||
|
|
||||||
|
if (type() == "hidden")
|
||||||
|
return nullptr;
|
||||||
|
|
||||||
RefPtr<GUI::Widget> widget;
|
RefPtr<GUI::Widget> widget;
|
||||||
if (type() == "submit") {
|
if (type() == "submit") {
|
||||||
auto& button = html_view.add<GUI::Button>(value());
|
auto& button = html_view.add<GUI::Button>(value());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue