فهرست منبع

LibWeb: Stop treating all SVG elements as inline

This fixes hit testing on SVG elements, with no obvious downsides.
Sam Atkins 3 سال پیش
والد
کامیت
5d2ce68f53
1فایلهای تغییر یافته به همراه0 افزوده شده و 1 حذف شده
  1. 0 1
      Userland/Libraries/LibWeb/Layout/SVGBox.cpp

+ 0 - 1
Userland/Libraries/LibWeb/Layout/SVGBox.cpp

@@ -12,7 +12,6 @@ namespace Web::Layout {
 SVGBox::SVGBox(DOM::Document& document, SVG::SVGElement& element, NonnullRefPtr<CSS::StyleProperties> style)
 SVGBox::SVGBox(DOM::Document& document, SVG::SVGElement& element, NonnullRefPtr<CSS::StyleProperties> style)
     : BlockContainer(document, &element, move(style))
     : BlockContainer(document, &element, move(style))
 {
 {
-    set_inline(true);
 }
 }
 
 
 void SVGBox::before_children_paint(PaintContext& context, PaintPhase phase)
 void SVGBox::before_children_paint(PaintContext& context, PaintPhase phase)