EdgeRect.h 636 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. * Copyright (c) 2021, Tobias Christiansen <tobyase@serenityos.org>
  4. * Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org>
  5. * Copyright (c) 2022-2023, MacDue <macdue@dueutil.tech>
  6. *
  7. * SPDX-License-Identifier: BSD-2-Clause
  8. */
  9. #pragma once
  10. #include <LibGfx/Rect.h>
  11. #include <LibWeb/CSS/Length.h>
  12. namespace Web::CSS {
  13. struct EdgeRect {
  14. Length top_edge;
  15. Length right_edge;
  16. Length bottom_edge;
  17. Length left_edge;
  18. CSSPixelRect resolved(Layout::Node const&, CSSPixelRect) const;
  19. bool operator==(EdgeRect const&) const = default;
  20. };
  21. }