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

LibWeb: Simplify Layout::Node::class_name() with RTTI

This commit is contained in:
Andreas Kling 2021-01-01 16:08:19 +01:00
parent 7841528cd4
commit 730af2c524
24 changed files with 8 additions and 37 deletions

View file

@ -43,7 +43,6 @@ public:
const String& text_for_style(const CSS::StyleProperties&) const;
const String& text_for_rendering() const { return m_text_for_rendering; }
virtual const char* class_name() const override { return "TextNode"; }
virtual bool is_text() const final { return true; }
virtual void paint_fragment(PaintContext&, const LineBoxFragment&, PaintPhase) const override;