From ff2c949d70033e6bc2deb9cb6c1c8baca4fbbe79 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 12 Jun 2020 13:23:07 +0200 Subject: LibWeb: Include class names in layout tree dumps This makes it a lot easier to see which layout node is which DOM node. --- Libraries/LibWeb/DOM/Element.h | 1 + 1 file changed, 1 insertion(+) (limited to 'Libraries/LibWeb/DOM/Element.h') diff --git a/Libraries/LibWeb/DOM/Element.h b/Libraries/LibWeb/DOM/Element.h index e8d0e4faba..cca9f83c6a 100644 --- a/Libraries/LibWeb/DOM/Element.h +++ b/Libraries/LibWeb/DOM/Element.h @@ -61,6 +61,7 @@ public: } bool has_class(const FlyString&) const; + const Vector& class_names() const { return m_classes; } virtual void apply_presentational_hints(StyleProperties&) const { } virtual void parse_attribute(const FlyString& name, const String& value); -- cgit v1.2.3