LibWeb: Reduce PaintTextShadow struct from 72 to 64 bytes

This commit is contained in:
Pavel Shliak 2024-11-11 14:19:27 +04:00 committed by Andreas Kling
commit 566870b2bd
Notes: github-actions[bot] 2024-11-11 16:07:17 +00:00
2 changed files with 9 additions and 9 deletions

View file

@ -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); }