1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +00:00

LibWeb: Make Layout::SVGBox a BlockContainer again

This wasn't worth the headache of trying to make SVG boxes work together
with BFC right now. Let's just make it a block container once again, and
have its corresponding SVGPaintable inherit from PaintableWithLines.

We'll have to revisit this as SVG support improves.
This commit is contained in:
Andreas Kling 2022-03-12 14:13:25 +01:00
parent e4eb6d4f1f
commit aa969cc591
5 changed files with 6 additions and 5 deletions

View file

@ -166,9 +166,10 @@ public:
virtual HitTestResult hit_test(Gfx::IntPoint const&, HitTestType) const override;
private:
protected:
PaintableWithLines(Layout::BlockContainer const&);
private:
Vector<Layout::LineBox> m_line_boxes;
};

View file

@ -10,7 +10,7 @@
namespace Web::Painting {
SVGPaintable::SVGPaintable(Layout::SVGBox const& layout_box)
: PaintableBox(layout_box)
: PaintableWithLines(layout_box)
{
}

View file

@ -11,7 +11,7 @@
namespace Web::Painting {
class SVGPaintable : public PaintableBox {
class SVGPaintable : public PaintableWithLines {
public:
virtual void before_children_paint(PaintContext&, PaintPhase) const override;
virtual void after_children_paint(PaintContext&, PaintPhase) const override;