LibWeb: Reduce DrawGlyphRun struct from 56 to 48 bytes

This commit is contained in:
Pavel Shliak 2024-11-11 14:05:36 +04:00 committed by Andreas Kling
commit d1c7c0ba19
Notes: github-actions[bot] 2024-11-11 16:07:23 +00:00
3 changed files with 6 additions and 6 deletions

View file

@ -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<float>() + command.text_rect.location().to_type<float>(),
.scale = command.glyph_run_scale,
.color = command.color,
});
canvas.restore();
}