LibWeb: Add more fast_is<T> helpers for layout and paintable nodes

This commit is contained in:
Andreas Kling 2025-04-18 10:28:46 +02:00 committed by Andreas Kling
commit 877391d569
Notes: github-actions[bot] 2025-04-18 12:47:24 +00:00
4 changed files with 20 additions and 0 deletions

View file

@ -125,6 +125,7 @@ public:
[[nodiscard]] virtual bool is_paintable_box() const { return false; }
[[nodiscard]] virtual bool is_paintable_with_lines() const { return false; }
[[nodiscard]] virtual bool is_svg_paintable() const { return false; }
[[nodiscard]] virtual bool is_svg_svg_paintable() const { return false; }
[[nodiscard]] virtual bool is_text_paintable() const { return false; }
DOM::Document const& document() const;