Selaa lähdekoodia

LibWeb: Fall back to block layout for unimplemented CSS display values

This seems to have a higher chance of generating somewhat recognizable
content compared to inline layout. This problem will gradually go away
as we implement more display values.
Andreas Kling 5 vuotta sitten
vanhempi
commit
0e777c0ac6
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Libraries/LibWeb/DOM/Element.cpp

+ 1 - 1
Libraries/LibWeb/DOM/Element.cpp

@@ -133,7 +133,7 @@ RefPtr<LayoutNode> Element::create_layout_node(const StyleProperties* parent_sty
     }
 
     dbg() << "Unknown display type: _" << display << "_";
-    return adopt(*new LayoutInline(*this, move(style)));
+    return adopt(*new LayoutBlock(this, move(style)));
 }
 
 void Element::parse_attribute(const FlyString& name, const String& value)