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

Everywhere: Run clang-format

This commit is contained in:
Idan Horowitz 2022-04-01 20:58:27 +03:00 committed by Linus Groh
parent 0376c127f6
commit 086969277e
1665 changed files with 8479 additions and 8479 deletions

View file

@ -16,10 +16,10 @@ namespace Web::DOM {
template<typename NodeType>
class NonElementParentNode {
public:
RefPtr<Element> get_element_by_id(const FlyString& id) const
RefPtr<Element> get_element_by_id(FlyString const& id) const
{
RefPtr<Element> found_element;
static_cast<const NodeType*>(this)->template for_each_in_inclusive_subtree_of_type<Element>([&](auto& element) {
static_cast<NodeType const*>(this)->template for_each_in_inclusive_subtree_of_type<Element>([&](auto& element) {
if (element.attribute(HTML::AttributeNames::id) == id) {
found_element = &element;
return IterationDecision::Break;
@ -28,9 +28,9 @@ public:
});
return found_element;
}
RefPtr<Element> get_element_by_id(const FlyString& id)
RefPtr<Element> get_element_by_id(FlyString const& id)
{
return const_cast<const NonElementParentNode*>(this)->get_element_by_id(id);
return const_cast<NonElementParentNode const*>(this)->get_element_by_id(id);
}
protected: