diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-19 19:02:02 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-19 19:02:02 +0200 |
commit | 025d3b49abe7a02a9addbff041303b1b48ec7912 (patch) | |
tree | 30217b5e003d31a57693028bf022060b30e6b704 /Libraries/LibHTML/DOM | |
parent | 96f34d26c97185a591b052f1d9d51183f0a37261 (diff) | |
download | serenity-025d3b49abe7a02a9addbff041303b1b48ec7912.zip |
LibHTML: Make "display: inline-block" generate a LayoutBlock for now
We're gonna need some more smarts for this, but this at least gives
us something instead of an assertion.
Diffstat (limited to 'Libraries/LibHTML/DOM')
-rw-r--r-- | Libraries/LibHTML/DOM/Element.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibHTML/DOM/Element.cpp b/Libraries/LibHTML/DOM/Element.cpp index c93536104b..fefde6a4a8 100644 --- a/Libraries/LibHTML/DOM/Element.cpp +++ b/Libraries/LibHTML/DOM/Element.cpp @@ -94,6 +94,8 @@ RefPtr<LayoutNode> Element::create_layout_node(const StyleProperties* parent_sty return adopt(*new LayoutTableRow(*this, move(style))); if (display == "table-cell") return adopt(*new LayoutTableCell(*this, move(style))); + if (display == "inline-block") + return adopt(*new LayoutBlock(this, move(style))); ASSERT_NOT_REACHED(); } |