1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 13:17:44 +00:00

LibWeb: Make private RecordingPainter::state()

Removes usage of `RecordingPainter::state()` and makes it private.

No behavior change intended.
This commit is contained in:
Aliaksandr Kalenik 2023-12-16 14:06:47 +01:00 committed by Alexander Kalenik
parent 55c483b763
commit f361b8c000
5 changed files with 10 additions and 10 deletions

View file

@ -498,6 +498,7 @@ public:
m_state_stack.append(State());
}
private:
struct State {
Gfx::AffineTransform translation;
Optional<Gfx::IntRect> clip_rect;
@ -505,7 +506,6 @@ public:
State& state() { return m_state_stack.last(); }
State const& state() const { return m_state_stack.last(); }
private:
void push_command(PaintingCommand command)
{
m_painting_commands.append(command);