diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-18 22:13:26 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-19 12:42:10 +0100 |
commit | 28b771560acf6ce127dcf284f4b7c4e40e4b6eec (patch) | |
tree | 3f522db045f4a80232c968930990f16cdd034393 /Userland/Libraries/LibWeb/Painting/SVGPaintable.h | |
parent | 48abbefb99c27fd6dd39d90cbac07e3b23796281 (diff) | |
download | serenity-28b771560acf6ce127dcf284f4b7c4e40e4b6eec.zip |
LibWeb: Make SVG <svg> elements behave as CSS replaced elements
This makes SVG-in-HTML behave quite a bit better by following general
replaced layout rules. It also turns <svg> elements into inline-level
boxes instead of block-level boxes.
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/SVGPaintable.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Painting/SVGPaintable.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/SVGPaintable.h b/Userland/Libraries/LibWeb/Painting/SVGPaintable.h index 5fa33e27d0..59eb8f008e 100644 --- a/Userland/Libraries/LibWeb/Painting/SVGPaintable.h +++ b/Userland/Libraries/LibWeb/Painting/SVGPaintable.h @@ -11,7 +11,7 @@ namespace Web::Painting { -class SVGPaintable : public PaintableWithLines { +class SVGPaintable : public PaintableBox { public: virtual void before_children_paint(PaintContext&, PaintPhase) const override; virtual void after_children_paint(PaintContext&, PaintPhase) const override; |