mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 12:37:45 +00:00
LibWeb: Make layout tree have non-const pointers to the DOM
Const pointers into the DOM was a nice idea, but in practice, there are too many situations where the layout tree wants to some non-const thing to the DOM.
This commit is contained in:
parent
a4eadeb80d
commit
fffc5896d8
33 changed files with 38 additions and 43 deletions
|
@ -33,7 +33,7 @@ namespace Web {
|
|||
|
||||
class LayoutBreak final : public LayoutNodeWithStyleAndBoxModelMetrics {
|
||||
public:
|
||||
LayoutBreak(DOM::Document&, const HTML::HTMLBRElement&);
|
||||
LayoutBreak(DOM::Document&, HTML::HTMLBRElement&);
|
||||
virtual ~LayoutBreak() override;
|
||||
|
||||
const HTML::HTMLBRElement& node() const { return downcast<HTML::HTMLBRElement>(*LayoutNode::node()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue