SVGFormattingContext.h 620 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2021, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/Forward.h>
  8. #include <LibWeb/Layout/FormattingContext.h>
  9. namespace Web::Layout {
  10. class SVGFormattingContext : public FormattingContext {
  11. public:
  12. explicit SVGFormattingContext(LayoutState&, Box const&, FormattingContext* parent);
  13. ~SVGFormattingContext();
  14. virtual void run(Box const&, LayoutMode, AvailableSpace const&) override;
  15. virtual CSSPixels automatic_content_width() const override;
  16. virtual CSSPixels automatic_content_height() const override;
  17. };
  18. }