mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	 f3db548a3d
			
		
	
	
		f3db548a3d
		
	
	
	
	
		
			
			DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so let's rename it to A) match the name of DeprecatedString, B) write a new FlyString class that is tied to String.
		
			
				
	
	
		
			28 lines
		
	
	
	
		
			673 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			673 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2020, the SerenityOS developers.
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/DOM/ARIARoleNames.h>
 | |
| #include <LibWeb/HTML/HTMLElement.h>
 | |
| 
 | |
| namespace Web::HTML {
 | |
| 
 | |
| class HTMLPreElement final : public HTMLElement {
 | |
|     WEB_PLATFORM_OBJECT(HTMLPreElement, HTMLElement);
 | |
| 
 | |
| public:
 | |
|     virtual ~HTMLPreElement() override;
 | |
| 
 | |
|     // https://www.w3.org/TR/html-aria/#el-pre
 | |
|     virtual DeprecatedFlyString default_role() const override { return DOM::ARIARoleNames::generic; }
 | |
| 
 | |
| private:
 | |
|     HTMLPreElement(DOM::Document&, DOM::QualifiedName);
 | |
|     virtual void apply_presentational_hints(CSS::StyleProperties&) const override;
 | |
| };
 | |
| 
 | |
| }
 |