2022-02-16 19:12:54 +01:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2022, the SerenityOS developers.
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/Layout/Progress.h>
|
2022-03-10 14:02:25 +01:00
|
|
|
#include <LibWeb/Painting/ProgressPaintable.h>
|
2022-02-16 19:12:54 +01:00
|
|
|
|
|
|
|
|
namespace Web::Layout {
|
|
|
|
|
|
|
|
|
|
Progress::Progress(DOM::Document& document, HTML::HTMLProgressElement& element, NonnullRefPtr<CSS::StyleProperties> style)
|
|
|
|
|
: LabelableNode(document, element, move(style))
|
|
|
|
|
{
|
|
|
|
|
set_intrinsic_height(12);
|
|
|
|
|
}
|
|
|
|
|
|
2022-03-14 13:21:51 -06:00
|
|
|
Progress::~Progress() = default;
|
2022-02-16 19:12:54 +01:00
|
|
|
|
2023-01-11 12:51:49 +01:00
|
|
|
JS::GCPtr<Painting::Paintable> Progress::create_paintable() const
|
2022-02-16 19:12:54 +01:00
|
|
|
{
|
2022-03-10 14:02:25 +01:00
|
|
|
return Painting::ProgressPaintable::create(*this);
|
2022-02-16 19:12:54 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|