mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	 7280ed6312
			
		
	
	
		7280ed6312
		
	
	
	
	
		
			
			This has come up several times during code review, so let's just enforce it using a new clang-format 20 option.
		
			
				
	
	
		
			34 lines
		
	
	
	
		
			713 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			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(); }
 | |
| 
 | |
| }
 |