mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 13:57:36 +00:00
LibWeb: Extract border-radius normalization code from Box
This is going to be needed by InlineNodes too! `BorderPainting.{h,cpp}` might not be the best place for it, but it works for now.
This commit is contained in:
parent
b88641e44b
commit
aaf12929d5
4 changed files with 39 additions and 29 deletions
|
@ -11,6 +11,14 @@
|
|||
|
||||
namespace Web::Painting {
|
||||
|
||||
struct BorderRadiusData {
|
||||
float top_left { 0 };
|
||||
float top_right { 0 };
|
||||
float bottom_right { 0 };
|
||||
float bottom_left { 0 };
|
||||
};
|
||||
BorderRadiusData normalized_border_radius_data(Layout::Node const&, Gfx::FloatRect const&, CSS::Length top_left_radius, CSS::Length top_right_radius, CSS::Length bottom_right_radius, CSS::Length bottom_left_radius);
|
||||
|
||||
enum class BorderEdge {
|
||||
Top,
|
||||
Right,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue