mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +00:00
LibWeb+WebContent: Move paint recording init into Navigable
This refactoring makes WebContent less aware of LibWeb internals. The code that initializes paint recording commands now resides in `Navigable::paint()`. Additionally, we no longer need to reuse PaintContext across iframes, allowing us to avoid saving and restoring its state before recursing into an iframe.
This commit is contained in:
parent
72dd37438d
commit
cc447c9c80
6 changed files with 65 additions and 47 deletions
|
@ -170,6 +170,13 @@ public:
|
|||
|
||||
[[nodiscard]] TargetSnapshotParams snapshot_target_snapshot_params();
|
||||
|
||||
struct PaintConfig {
|
||||
bool paint_overlay { false };
|
||||
bool should_show_line_box_borders { false };
|
||||
bool has_focus { false };
|
||||
};
|
||||
void paint(Painting::RecordingPainter&, PaintConfig);
|
||||
|
||||
protected:
|
||||
Navigable();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue