1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00
ladybird/Libraries/LibWeb/HTML/HTMLHeadElement.h
Timothy Flynn 7280ed6312 Meta: Enforce newlines around namespaces
This has come up several times during code review, so let's just enforce
it using a new clang-format 20 option.
2025-05-14 02:01:59 -06:00

34 lines
713 B
C++

/*
* Copyright (c) 2018-2020, Andreas Kling <andreas@ladybird.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/HTML/HTMLElement.h>
namespace Web::HTML {
class HTMLHeadElement final : public HTMLElement {
WEB_PLATFORM_OBJECT(HTMLHeadElement, HTMLElement);
GC_DECLARE_ALLOCATOR(HTMLHeadElement);
public:
virtual ~HTMLHeadElement() override;
private:
HTMLHeadElement(DOM::Document&, DOM::QualifiedName);
virtual bool is_html_head_element() const final { return true; }
virtual void initialize(JS::Realm&) override;
};
}
namespace Web::DOM {
template<>
inline bool Node::fast_is<HTML::HTMLHeadElement>() const { return is_html_head_element(); }
}