mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:42:44 +00:00 
			
		
		
		
	LibWeb: Fix ::-webkit-progress-bar/value pseudo elements
Recent changes to layout and display broke these pseudo elements leading to crashes on a few websites such as https://rpcs3.net/.
This commit is contained in:
		
							parent
							
								
									72605e854f
								
							
						
					
					
						commit
						0265041d44
					
				
					 2 changed files with 14 additions and 7 deletions
				
			
		|  | @ -25,9 +25,8 @@ HTMLProgressElement::~HTMLProgressElement() = default; | |||
| 
 | ||||
| RefPtr<Layout::Node> HTMLProgressElement::create_layout_node(NonnullRefPtr<CSS::StyleProperties> style) | ||||
| { | ||||
|     if (style->appearance().value_or(CSS::Appearance::Auto) == CSS::Appearance::None) { | ||||
|         return adopt_ref(*new Layout::BlockContainer(document(), this, move(style))); | ||||
|     } | ||||
|     if (style->appearance().value_or(CSS::Appearance::Auto) == CSS::Appearance::None) | ||||
|         return HTMLElement::create_layout_node(style); | ||||
|     return adopt_ref(*new Layout::Progress(document(), *this, move(style))); | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 MacDue
						MacDue