1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

LibWeb: Add non-const version of paintable_box() in Layout::Node

Allows to remove a bunch of const_cast's
This commit is contained in:
Aliaksandr Kalenik 2023-08-07 00:51:05 +02:00 committed by Andreas Kling
parent dc08e9138c
commit 6868ace8f4
3 changed files with 11 additions and 5 deletions

View file

@ -23,6 +23,7 @@ class Box : public NodeWithStyleAndBoxModelMetrics {
public:
Painting::PaintableBox const* paintable_box() const;
Painting::PaintableBox* paintable_box();
virtual void set_needs_display() override;