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:
parent
dc08e9138c
commit
6868ace8f4
3 changed files with 11 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue