mirror of
				https://github.com/LadybirdBrowser/ladybird.git
				synced 2025-10-31 13:20:59 +00:00 
			
		
		
		
	LibWeb/CSS: Rename CSSKeywordValue -> KeywordStyleValue
The typed-om CSSKeywordValue will need to be a separate class.
This commit is contained in:
		
							parent
							
								
									c57975c9fd
								
							
						
					
					
						commit
						4e92ab52e3
					
				
				
				Notes:
				
					github-actions[bot]
				
				2025-08-08 14:20:48 +00:00 
				
			
			Author: https://github.com/AtkinsSJ
Commit: 4e92ab52e3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5775
Reviewed-by: https://github.com/tcl3 ✅
			
					 51 changed files with 189 additions and 191 deletions
				
			
		|  | @ -7,8 +7,8 @@ | |||
| #include <LibWeb/Bindings/HTMLEmbedElementPrototype.h> | ||||
| #include <LibWeb/Bindings/Intrinsics.h> | ||||
| #include <LibWeb/CSS/ComputedProperties.h> | ||||
| #include <LibWeb/CSS/StyleValues/CSSKeywordValue.h> | ||||
| #include <LibWeb/CSS/StyleValues/DisplayStyleValue.h> | ||||
| #include <LibWeb/CSS/StyleValues/KeywordStyleValue.h> | ||||
| #include <LibWeb/HTML/HTMLEmbedElement.h> | ||||
| #include <LibWeb/HTML/Parser/HTMLParser.h> | ||||
| 
 | ||||
|  | @ -47,9 +47,9 @@ void HTMLEmbedElement::apply_presentational_hints(GC::Ref<CSS::CascadedPropertie | |||
|     for_each_attribute([&](auto& name, auto& value) { | ||||
|         if (name == HTML::AttributeNames::align) { | ||||
|             if (value.equals_ignoring_ascii_case("center"sv)) | ||||
|                 cascaded_properties->set_property_from_presentational_hint(CSS::PropertyID::TextAlign, CSS::CSSKeywordValue::create(CSS::Keyword::Center)); | ||||
|                 cascaded_properties->set_property_from_presentational_hint(CSS::PropertyID::TextAlign, CSS::KeywordStyleValue::create(CSS::Keyword::Center)); | ||||
|             else if (value.equals_ignoring_ascii_case("middle"sv)) | ||||
|                 cascaded_properties->set_property_from_presentational_hint(CSS::PropertyID::TextAlign, CSS::CSSKeywordValue::create(CSS::Keyword::Middle)); | ||||
|                 cascaded_properties->set_property_from_presentational_hint(CSS::PropertyID::TextAlign, CSS::KeywordStyleValue::create(CSS::Keyword::Middle)); | ||||
|         } else if (name == HTML::AttributeNames::height) { | ||||
|             if (auto parsed_value = parse_dimension_value(value)) | ||||
|                 cascaded_properties->set_property_from_presentational_hint(CSS::PropertyID::Height, *parsed_value); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins