1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:57:44 +00:00

LibWeb/Painting: Remove command to paint progress bar

It is no longer used because we started using shadow dom for progress
element.
This commit is contained in:
Aliaksandr Kalenik 2023-12-14 13:57:55 +01:00 committed by Andreas Kling
parent c145d5410c
commit 874af6048f
6 changed files with 0 additions and 47 deletions

View file

@ -307,19 +307,6 @@ void RecordingPainter::pop_stacking_context()
m_state_stack.take_last();
}
void RecordingPainter::paint_progressbar(Gfx::IntRect frame_rect, Gfx::IntRect progress_rect, Palette palette, int min, int max, int value, StringView text)
{
push_command(PaintProgressbar {
.frame_rect = state().translation.map(frame_rect),
.progress_rect = state().translation.map(progress_rect),
.palette = palette,
.min = min,
.max = max,
.value = value,
.text = text,
});
}
void RecordingPainter::paint_frame(Gfx::IntRect rect, Palette palette, Gfx::FrameStyle style)
{
push_command(PaintFrame { state().translation.map(rect), palette, style });
@ -529,9 +516,6 @@ void RecordingPainter::execute(PaintingCommandExecutor& executor)
[&](DrawSignedDistanceField const& command) {
return executor.draw_signed_distance_field(command.rect, command.color, command.sdf, command.smoothing);
},
[&](PaintProgressbar const& command) {
return executor.paint_progressbar(command.frame_rect, command.progress_rect, command.palette, command.min, command.max, command.value, command.text);
},
[&](PaintFrame const& command) {
return executor.paint_frame(command.rect, command.palette, command.style);
},