mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-27 02:20:17 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			31 lines
		
	
	
	
		
			755 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
	
		
			755 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 HTMLFontElement final : public HTMLElement {
 | |
|     WEB_PLATFORM_OBJECT(HTMLFontElement, HTMLElement);
 | |
|     GC_DECLARE_ALLOCATOR(HTMLFontElement);
 | |
| 
 | |
| public:
 | |
|     virtual ~HTMLFontElement() override;
 | |
| 
 | |
|     virtual bool is_presentational_hint(FlyString const&) const override;
 | |
|     virtual void apply_presentational_hints(GC::Ref<CSS::CascadedProperties>) const override;
 | |
| 
 | |
|     static Optional<CSS::Keyword> parse_legacy_font_size(StringView);
 | |
| 
 | |
| private:
 | |
|     HTMLFontElement(DOM::Document&, DOM::QualifiedName);
 | |
| 
 | |
|     virtual void initialize(JS::Realm&) override;
 | |
| };
 | |
| 
 | |
| }
 |