1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibWeb: Fix build breakage after merging the oldish DOM inspector PR

This commit is contained in:
Andreas Kling 2021-06-29 23:11:09 +02:00
parent fd06b8b713
commit 384cffaa04
2 changed files with 6 additions and 6 deletions

View file

@ -615,7 +615,7 @@ void Node::serialize_tree_as_json(JsonObjectSerializer<StringBuilder>& object) c
else if (is_element()) {
object.add("type", "element");
auto element = downcast<DOM::Element>(this);
auto element = static_cast<DOM::Element const*>(this);
if (element->has_attributes()) {
auto attributes = object.add_object("attributes");
element->for_each_attribute([&attributes](auto& name, auto& value) {
@ -625,7 +625,7 @@ void Node::serialize_tree_as_json(JsonObjectSerializer<StringBuilder>& object) c
} else if (is_text()) {
object.add("type", "text");
auto text_node = downcast<DOM::Text>(this);
auto text_node = static_cast<DOM::Text const*>(this);
object.add("text", text_node->data());
}