/* * Copyright (c) 2020-2022, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #include #include #include #include #include #include namespace Web::Layout { CheckBox::CheckBox(DOM::Document& document, HTML::HTMLInputElement& element, NonnullRefPtr style) : FormAssociatedLabelableNode(document, element, move(style)) { set_intrinsic_width(13); set_intrinsic_height(13); } CheckBox::~CheckBox() = default; JS::GCPtr CheckBox::create_paintable() const { return Painting::CheckBoxPaintable::create(*this); } }