mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 21:30:58 +00:00 
			
		
		
		
	 f87041bf3a
			
		
	
	
		f87041bf3a
		
	
	
	
	
		
			
			Resulting in a massive rename across almost everywhere! Alongside the namespace change, we now have the following names: * JS::NonnullGCPtr -> GC::Ref * JS::GCPtr -> GC::Ptr * JS::HeapFunction -> GC::Function * JS::CellImpl -> GC::Cell * JS::Handle -> GC::Root
		
			
				
	
	
		
			36 lines
		
	
	
	
		
			981 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
	
		
			981 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Copyright (c) 2024, Sam Atkins <sam@ladybird.org>
 | |
|  *
 | |
|  * SPDX-License-Identifier: BSD-2-Clause
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #include <LibWeb/CSS/CSSRule.h>
 | |
| 
 | |
| namespace Web::CSS {
 | |
| 
 | |
| // https://drafts.csswg.org/css-cascade-5/#the-csslayerstatementrule-interface
 | |
| class CSSLayerStatementRule final : public CSSRule {
 | |
|     WEB_PLATFORM_OBJECT(CSSLayerStatementRule, CSSRule);
 | |
|     GC_DECLARE_ALLOCATOR(CSSLayerStatementRule);
 | |
| 
 | |
| public:
 | |
|     [[nodiscard]] static GC::Ref<CSSLayerStatementRule> create(JS::Realm&, Vector<FlyString> name_list);
 | |
| 
 | |
|     virtual ~CSSLayerStatementRule() = default;
 | |
| 
 | |
|     // FIXME: Should be FrozenArray
 | |
|     ReadonlySpan<FlyString> name_list() const { return m_name_list; }
 | |
|     Vector<FlyString> internal_qualified_name_list(Badge<StyleComputer>) const;
 | |
| 
 | |
| private:
 | |
|     CSSLayerStatementRule(JS::Realm&, Vector<FlyString> name_list);
 | |
| 
 | |
|     virtual void initialize(JS::Realm&) override;
 | |
|     virtual String serialized() const override;
 | |
| 
 | |
|     Vector<FlyString> m_name_list;
 | |
| };
 | |
| 
 | |
| }
 |