1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 07:37:35 +00:00

LibWeb: Use floating-point math for border-radius rendering

We're still limited by Gfx::Painter here, but we can at least do most
of the LibWeb things in floating-point math.
This commit is contained in:
Andreas Kling 2021-09-18 12:04:25 +02:00
parent f6a2d6af0b
commit 4e47e6d578
2 changed files with 32 additions and 33 deletions

View file

@ -126,11 +126,10 @@ public:
virtual float width_of_logical_containing_block() const;
struct BorderRadiusData {
// FIXME: Use floats here
int top_left { 0 };
int top_right { 0 };
int bottom_right { 0 };
int bottom_left { 0 };
float top_left { 0 };
float top_right { 0 };
float bottom_right { 0 };
float bottom_left { 0 };
};
BorderRadiusData normalized_border_radius_data();