mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
LibWeb: Make display: foo
box constructors take the Element by pointer
This means we can instantiate them for pseudo-elements, which don't have an associated Element. They all pass it to their parent as a `Layout::Node*` and handle a lack of `layout_node()` already so this won't affect any functionality.
This commit is contained in:
parent
adaab23149
commit
7bb721bea2
7 changed files with 13 additions and 13 deletions
|
@ -12,7 +12,7 @@ namespace Web::Layout {
|
|||
|
||||
class TableRowGroupBox final : public BlockContainer {
|
||||
public:
|
||||
TableRowGroupBox(DOM::Document&, DOM::Element&, NonnullRefPtr<CSS::StyleProperties>);
|
||||
TableRowGroupBox(DOM::Document&, DOM::Element*, NonnullRefPtr<CSS::StyleProperties>);
|
||||
virtual ~TableRowGroupBox() override;
|
||||
|
||||
size_t column_count() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue