Coverage Report

Created: 2026-02-14 08:01

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/serenity/Userland/Libraries/LibWeb/Painting/SVGPaintable.h
Line
Count
Source
1
/*
2
 * Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
3
 *
4
 * SPDX-License-Identifier: BSD-2-Clause
5
 */
6
7
#pragma once
8
9
#include <LibWeb/Layout/SVGBox.h>
10
#include <LibWeb/Painting/PaintableBox.h>
11
12
namespace Web::Painting {
13
14
class SVGPaintable : public PaintableBox {
15
    JS_CELL(SVGPaintable, PaintableBox);
16
17
public:
18
    Layout::SVGBox const& layout_box() const;
19
20
protected:
21
0
    virtual bool is_svg_paintable() const override { return true; }
22
23
    SVGPaintable(Layout::SVGBox const&);
24
25
    virtual CSSPixelRect compute_absolute_rect() const override;
26
};
27
28
template<>
29
0
inline bool Paintable::fast_is<SVGPaintable>() const { return is_svg_paintable(); }
30
31
}