Progress.cpp 634 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2022, the SerenityOS developers.
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #include <LibGfx/Painter.h>
  7. #include <LibGfx/StylePainter.h>
  8. #include <LibWeb/Layout/Progress.h>
  9. #include <LibWeb/Painting/ProgressPaintable.h>
  10. namespace Web::Layout {
  11. Progress::Progress(DOM::Document& document, HTML::HTMLProgressElement& element, NonnullRefPtr<CSS::StyleProperties> style)
  12. : LabelableNode(document, element, move(style))
  13. {
  14. set_intrinsic_height(12);
  15. }
  16. Progress::~Progress()
  17. {
  18. }
  19. RefPtr<Painting::Paintable> Progress::create_paintable() const
  20. {
  21. return Painting::ProgressPaintable::create(*this);
  22. }
  23. }