mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-31 22:56:04 +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
Notes:
sideshowbarker
2024-07-18 03:44:09 +09:00
Author: https://github.com/awesomekling
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