diff --git a/Libraries/LibWeb/Painting/Command.h b/Libraries/LibWeb/Painting/Command.h index c6da54cff80..d02bd9dd532 100644 --- a/Libraries/LibWeb/Painting/Command.h +++ b/Libraries/LibWeb/Painting/Command.h @@ -39,10 +39,10 @@ class DisplayList; struct DrawGlyphRun { NonnullRefPtr 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; } diff --git a/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp b/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp index 1b46ed207ef..b1c56596787 100644 --- a/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp +++ b/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp @@ -704,10 +704,10 @@ void DisplayListPlayerSkia::paint_text_shadow(PaintTextShadow const& command) canvas.saveLayer(SkCanvas::SaveLayerRec(nullptr, &blur_paint, nullptr, 0)); draw_glyph_run({ .glyph_run = command.glyph_run, - .color = command.color, + .scale = command.glyph_run_scale, .rect = command.text_rect, .translation = command.draw_location.to_type() + command.text_rect.location().to_type(), - .scale = command.glyph_run_scale, + .color = command.color, }); canvas.restore(); } diff --git a/Libraries/LibWeb/Painting/DisplayListRecorder.cpp b/Libraries/LibWeb/Painting/DisplayListRecorder.cpp index 8a2c03c88b1..c8459328b42 100644 --- a/Libraries/LibWeb/Painting/DisplayListRecorder.cpp +++ b/Libraries/LibWeb/Painting/DisplayListRecorder.cpp @@ -243,10 +243,10 @@ void DisplayListRecorder::draw_text_run(Gfx::IntPoint baseline_start, Gfx::Glyph return; append(DrawGlyphRun { .glyph_run = glyph_run, - .color = color, + .scale = scale, .rect = rect, .translation = baseline_start.to_type(), - .scale = scale, + .color = color, .orientation = orientation, }); }