1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:48:14 +00:00

LibWeb: Demangle the names returned by Layout::Node::class_name()

Note that these are only used in debugging/test output so it's not
performance sensitive.
This commit is contained in:
Andreas Kling 2021-01-01 16:42:44 +01:00
parent 730af2c524
commit fc86717f43
3 changed files with 10 additions and 5 deletions

View file

@ -24,6 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include <AK/Demangle.h>
#include <LibGUI/Painter.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/Element.h>
@ -297,9 +298,9 @@ bool Node::is_root_element() const
return is<HTML::HTMLHtmlElement>(*dom_node());
}
const char* Node::class_name() const
String Node::class_name() const
{
return typeid(*this).name();
return demangle(typeid(*this).name());
}
}