mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-02 15:46:33 +00:00
LibWeb: Reduce DrawGlyphRun struct from 56 to 48 bytes
This commit is contained in:
parent
ddc3017464
commit
d1c7c0ba19
Notes:
github-actions[bot]
2024-11-11 16:07:23 +00:00
Author: https://github.com/shlyakpavel
Commit: d1c7c0ba19
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2280
3 changed files with 6 additions and 6 deletions
|
@ -39,10 +39,10 @@ class DisplayList;
|
|||
|
||||
struct DrawGlyphRun {
|
||||
NonnullRefPtr<Gfx::GlyphRun> glyph_run;
|
||||
Color color;
|
||||
double scale { 1 };
|
||||
Gfx::IntRect rect;
|
||||
Gfx::FloatPoint translation;
|
||||
double scale { 1 };
|
||||
Color color;
|
||||
Gfx::Orientation orientation { Gfx::Orientation::Horizontal };
|
||||
|
||||
[[nodiscard]] Gfx::IntRect bounding_rect() const { return rect; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue