/src/serenity/Userland/Libraries/LibWeb/Painting/BorderRadiiData.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* |
2 | | * Copyright (c) 2020, Andreas Kling <kling@serenityos.org> |
3 | | * Copyright (c) 2021-2023, Sam Atkins <atkinssj@serenityos.org> |
4 | | * |
5 | | * SPDX-License-Identifier: BSD-2-Clause |
6 | | */ |
7 | | |
8 | | #include <LibWeb/Painting/BorderRadiiData.h> |
9 | | #include <LibWeb/Painting/PaintContext.h> |
10 | | |
11 | | namespace Web::Painting { |
12 | | |
13 | | Gfx::CornerRadius BorderRadiusData::as_corner(PaintContext const& context) const |
14 | 0 | { |
15 | 0 | return Gfx::CornerRadius { |
16 | 0 | context.floored_device_pixels(horizontal_radius).value(), |
17 | 0 | context.floored_device_pixels(vertical_radius).value() |
18 | 0 | }; |
19 | 0 | } |
20 | | |
21 | | } |