mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 01:37:34 +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
|
@ -35,7 +35,7 @@
|
|||
|
||||
namespace Web {
|
||||
|
||||
LayoutNode::LayoutNode(DOM::Document& document, const DOM::Node* node)
|
||||
LayoutNode::LayoutNode(DOM::Document& document, DOM::Node* node)
|
||||
: m_document(document)
|
||||
, m_node(node)
|
||||
{
|
||||
|
@ -208,7 +208,7 @@ bool LayoutNode::is_fixed_position() const
|
|||
return position == CSS::Position::Fixed;
|
||||
}
|
||||
|
||||
LayoutNodeWithStyle::LayoutNodeWithStyle(DOM::Document& document, const DOM::Node* node, NonnullRefPtr<CSS::StyleProperties> specified_style)
|
||||
LayoutNodeWithStyle::LayoutNodeWithStyle(DOM::Document& document, DOM::Node* node, NonnullRefPtr<CSS::StyleProperties> specified_style)
|
||||
: LayoutNode(document, node)
|
||||
, m_specified_style(move(specified_style))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue