mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 19:19:30 +00:00
LibWeb: Reduce PaintTextShadow struct from 72 to 64 bytes
This commit is contained in:
parent
d1c7c0ba19
commit
566870b2bd
Notes:
github-actions[bot]
2024-11-11 16:07:17 +00:00
Author: https://github.com/shlyakpavel
Commit: 566870b2bd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2280
2 changed files with 9 additions and 9 deletions
|
@ -158,13 +158,13 @@ struct PaintInnerBoxShadow {
|
|||
};
|
||||
|
||||
struct PaintTextShadow {
|
||||
int blur_radius;
|
||||
Gfx::IntRect shadow_bounding_rect;
|
||||
Gfx::IntRect text_rect;
|
||||
NonnullRefPtr<Gfx::GlyphRun> glyph_run;
|
||||
double glyph_run_scale { 1 };
|
||||
Color color;
|
||||
Gfx::IntRect shadow_bounding_rect;
|
||||
Gfx::IntRect text_rect;
|
||||
Gfx::IntPoint draw_location;
|
||||
int blur_radius;
|
||||
Color color;
|
||||
|
||||
[[nodiscard]] Gfx::IntRect bounding_rect() const { return { draw_location, shadow_bounding_rect.size() }; }
|
||||
void translate_by(Gfx::IntPoint const& offset) { draw_location.translate_by(offset); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue