LengthBox.cpp 670 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. * Copyright (c) 2022, Ben Wiederhake <BenWiederhake.GitHub@gmx.de>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #include "LengthBox.h"
  8. #include <LibWeb/CSS/StyleValue.h>
  9. namespace Web::CSS {
  10. LengthBox::LengthBox()
  11. : m_top(Length::make_auto())
  12. , m_right(Length::make_auto())
  13. , m_bottom(Length::make_auto())
  14. , m_left(Length::make_auto())
  15. {
  16. }
  17. LengthBox::LengthBox(LengthPercentage top, LengthPercentage right, LengthPercentage bottom, LengthPercentage left)
  18. : m_top(top)
  19. , m_right(right)
  20. , m_bottom(bottom)
  21. , m_left(left)
  22. {
  23. }
  24. LengthBox::~LengthBox() = default;
  25. }