mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:57:44 +00:00
LibWeb: Shrink the inner border radii to accommodate the border widths
This fixes the shape of the subreddit logo on new reddit.
This commit is contained in:
parent
890514a057
commit
b68f48eb71
5 changed files with 16 additions and 10 deletions
|
@ -123,7 +123,12 @@ protected:
|
|||
|
||||
virtual Gfx::FloatRect compute_absolute_rect() const;
|
||||
|
||||
Painting::BorderRadiiData normalized_border_radii_data() const;
|
||||
enum class ShrinkRadiiForBorders {
|
||||
Yes,
|
||||
No
|
||||
};
|
||||
|
||||
Painting::BorderRadiiData normalized_border_radii_data(ShrinkRadiiForBorders shrink = ShrinkRadiiForBorders::No) const;
|
||||
|
||||
private:
|
||||
Optional<OverflowData> m_overflow_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue