mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:07:45 +00:00
LibWeb: Remove ClearRect command in RecordingPainter
There is only one usage of ClearRect command and it could be replaced with FillRect to make set of commands in RecordingPainter smaller.
This commit is contained in:
parent
8922574133
commit
f32764975a
3 changed files with 1 additions and 27 deletions
|
@ -40,13 +40,6 @@ enum class CommandResult {
|
|||
SkipStackingContext,
|
||||
};
|
||||
|
||||
struct ClearRect {
|
||||
Gfx::IntRect rect;
|
||||
Color color;
|
||||
|
||||
[[nodiscard]] CommandResult execute(CommandExecutionState&) const;
|
||||
};
|
||||
|
||||
struct DrawTextRun {
|
||||
Color color;
|
||||
Gfx::IntPoint baseline_start;
|
||||
|
@ -347,7 +340,6 @@ struct BlitCornerClipping {
|
|||
};
|
||||
|
||||
using PaintingCommand = Variant<
|
||||
ClearRect,
|
||||
DrawTextRun,
|
||||
DrawText,
|
||||
FillRect,
|
||||
|
@ -387,7 +379,6 @@ using PaintingCommand = Variant<
|
|||
|
||||
class RecordingPainter {
|
||||
public:
|
||||
void clear_rect(Gfx::IntRect const& rect, Color color);
|
||||
void fill_rect(Gfx::IntRect const& rect, Color color);
|
||||
|
||||
struct FillPathUsingColorParams {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue