diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-12 13:23:07 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-12 13:23:07 +0200 |
commit | ff2c949d70033e6bc2deb9cb6c1c8baca4fbbe79 (patch) | |
tree | 86709bf91eebcfaf455f9d78a75b660462b8716e /Libraries/LibWeb/DOM/Element.h | |
parent | 6f1b5fc0ab9816bb8e54ce57dd86c4bea1fe1dd4 (diff) | |
download | serenity-ff2c949d70033e6bc2deb9cb6c1c8baca4fbbe79.zip |
LibWeb: Include class names in layout tree dumps
This makes it a lot easier to see which layout node is which DOM node.
Diffstat (limited to 'Libraries/LibWeb/DOM/Element.h')
-rw-r--r-- | Libraries/LibWeb/DOM/Element.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<FlyString>& class_names() const { return m_classes; } virtual void apply_presentational_hints(StyleProperties&) const { } virtual void parse_attribute(const FlyString& name, const String& value); |