mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-05 15:49:15 +00:00
LibWeb: Rename draw_text_run to draw_glyph_run in DisplayListRecorder
For consistency with corresponding display list item name.
This commit is contained in:
parent
64f1a76636
commit
0e8d70d8c3
Notes:
github-actions[bot]
2025-07-27 08:21:42 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 0e8d70d8c3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5609
Reviewed-by: https://github.com/gmta ✅
4 changed files with 6 additions and 6 deletions
|
@ -871,14 +871,14 @@ void paint_text_fragment(PaintContext& context, TextPaintable const& paintable,
|
|||
fragment_absolute_rect.x().to_float(),
|
||||
fragment_absolute_rect.y().to_float() + fragment.baseline().to_float(),
|
||||
} * scale;
|
||||
painter.draw_text_run(baseline_start, *glyph_run, paintable.computed_values().webkit_text_fill_color(), fragment_absolute_device_rect.to_type<int>(), scale, fragment.orientation());
|
||||
painter.draw_glyph_run(baseline_start, *glyph_run, paintable.computed_values().webkit_text_fill_color(), fragment_absolute_device_rect.to_type<int>(), scale, fragment.orientation());
|
||||
|
||||
auto selection_rect = context.enclosing_device_rect(fragment.selection_rect()).to_type<int>();
|
||||
if (!selection_rect.is_empty()) {
|
||||
painter.fill_rect(selection_rect, CSS::SystemColor::highlight(paintable.computed_values().color_scheme()));
|
||||
DisplayListRecorderStateSaver saver(painter);
|
||||
painter.add_clip_rect(selection_rect);
|
||||
painter.draw_text_run(baseline_start, *glyph_run, CSS::SystemColor::highlight_text(paintable.computed_values().color_scheme()), fragment_absolute_device_rect.to_type<int>(), scale, fragment.orientation());
|
||||
painter.draw_glyph_run(baseline_start, *glyph_run, CSS::SystemColor::highlight_text(paintable.computed_values().color_scheme()), fragment_absolute_device_rect.to_type<int>(), scale, fragment.orientation());
|
||||
}
|
||||
|
||||
paint_text_decoration(context, paintable, fragment);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue