diff options
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp index 2dd25930ca..ec27e7b7e2 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLCanvasElement.cpp @@ -47,11 +47,8 @@ void HTMLCanvasElement::set_height(unsigned value) set_attribute(HTML::AttributeNames::height, String::number(value)); } -RefPtr<Layout::Node> HTMLCanvasElement::create_layout_node() +RefPtr<Layout::Node> HTMLCanvasElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style) { - auto style = document().style_computer().compute_style(*this); - if (style->display().is_none()) - return nullptr; return adopt_ref(*new Layout::CanvasBox(document(), *this, move(style))); } |