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:
parent
0376c127f6
commit
086969277e
1665 changed files with 8479 additions and 8479 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue