diff --git a/Userland/Libraries/LibWeb/DOM/Element.cpp b/Userland/Libraries/LibWeb/DOM/Element.cpp index c453692eaed..6d0ae6e0f86 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.cpp +++ b/Userland/Libraries/LibWeb/DOM/Element.cpp @@ -395,7 +395,7 @@ JS::GCPtr Element::create_layout_node(NonnullRefPtr Element::create_layout_node_for_display_type(DOM::Document& document, CSS::Display const& display, NonnullRefPtr style, Element* element) +JS::GCPtr Element::create_layout_node_for_display_type(DOM::Document& document, CSS::Display const& display, NonnullRefPtr style, Element* element) { if (display.is_table_inside() || display.is_table_row_group() || display.is_table_header_group() || display.is_table_footer_group() || display.is_table_row()) return document.heap().allocate_without_realm(document, element, move(style)); @@ -1125,7 +1125,7 @@ void Element::children_changed() set_needs_style_update(true); } -void Element::set_pseudo_element_node(Badge, CSS::Selector::PseudoElement::Type pseudo_element, JS::GCPtr pseudo_element_node) +void Element::set_pseudo_element_node(Badge, CSS::Selector::PseudoElement::Type pseudo_element, JS::GCPtr pseudo_element_node) { auto existing_pseudo_element = get_pseudo_element(pseudo_element); if (!existing_pseudo_element.has_value() && !pseudo_element_node) @@ -1134,7 +1134,7 @@ void Element::set_pseudo_element_node(Badge, CSS::Selector: ensure_pseudo_element(pseudo_element).layout_node = move(pseudo_element_node); } -JS::GCPtr Element::get_pseudo_element_node(CSS::Selector::PseudoElement::Type pseudo_element) const +JS::GCPtr Element::get_pseudo_element_node(CSS::Selector::PseudoElement::Type pseudo_element) const { if (auto element_data = get_pseudo_element(pseudo_element); element_data.has_value()) return element_data->layout_node; diff --git a/Userland/Libraries/LibWeb/DOM/Element.h b/Userland/Libraries/LibWeb/DOM/Element.h index eabd7fcd0d5..f1b5fc599f6 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.h +++ b/Userland/Libraries/LibWeb/DOM/Element.h @@ -241,10 +241,10 @@ public: virtual void did_receive_focus() { } virtual void did_lose_focus() { } - static JS::GCPtr create_layout_node_for_display_type(DOM::Document&, CSS::Display const&, NonnullRefPtr, Element*); + static JS::GCPtr create_layout_node_for_display_type(DOM::Document&, CSS::Display const&, NonnullRefPtr, Element*); - void set_pseudo_element_node(Badge, CSS::Selector::PseudoElement::Type, JS::GCPtr); - JS::GCPtr get_pseudo_element_node(CSS::Selector::PseudoElement::Type) const; + void set_pseudo_element_node(Badge, CSS::Selector::PseudoElement::Type, JS::GCPtr); + JS::GCPtr get_pseudo_element_node(CSS::Selector::PseudoElement::Type) const; void clear_pseudo_element_nodes(Badge); void serialize_pseudo_elements_as_json(JsonArraySerializer& children_array) const; @@ -453,7 +453,7 @@ private: HashMap m_custom_properties; struct PseudoElement { - JS::GCPtr layout_node; + JS::GCPtr layout_node; RefPtr computed_css_values; HashMap custom_properties; };