mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:37:46 +00:00
LibWeb: Simplify Layout::Node::class_name() with RTTI
This commit is contained in:
parent
7841528cd4
commit
730af2c524
24 changed files with 8 additions and 37 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
|
||||
* Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -93,7 +93,7 @@ public:
|
|||
|
||||
bool is_root_element() const;
|
||||
|
||||
virtual const char* class_name() const = 0;
|
||||
const char* class_name() const;
|
||||
virtual bool is_initial_containing_block() const { return false; }
|
||||
virtual bool is_text() const { return false; }
|
||||
virtual bool is_block() const { return false; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue