LengthBox.cpp 635 B

123456789101112131415161718192021222324252627282930
  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. namespace Web::CSS {
  9. LengthBox::LengthBox()
  10. : m_top(Length::make_auto())
  11. , m_right(Length::make_auto())
  12. , m_bottom(Length::make_auto())
  13. , m_left(Length::make_auto())
  14. {
  15. }
  16. LengthBox::LengthBox(LengthPercentage top, LengthPercentage right, LengthPercentage bottom, LengthPercentage left)
  17. : m_top(top)
  18. , m_right(right)
  19. , m_bottom(bottom)
  20. , m_left(left)
  21. {
  22. }
  23. LengthBox::~LengthBox() = default;
  24. }