mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +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:
@@ -29,7 +29,7 @@
|
||||
|
||||
namespace Web {
|
||||
|
||||
LayoutBreak::LayoutBreak(DOM::Document& document, const HTML::HTMLBRElement& element)
|
||||
LayoutBreak::LayoutBreak(DOM::Document& document, HTML::HTMLBRElement& element)
|
||||
: LayoutNodeWithStyleAndBoxModelMetrics(document, &element, CSS::StyleProperties::create())
|
||||
{
|
||||
set_inline(true);
|
||||
|
||||
Reference in New Issue
Block a user