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:
parent
f6a2d6af0b
commit
4e47e6d578
2 changed files with 32 additions and 33 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue