mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 16:32:45 +00:00 
			
		
		
		
	LibWeb: Remove hand-rolled is_foo() helpers in Layout::Node classes
This commit is contained in:
		
							parent
							
								
									3bb0cb2202
								
							
						
					
					
						commit
						07dd73c351
					
				
					 31 changed files with 39 additions and 82 deletions
				
			
		|  | @ -165,7 +165,7 @@ void Box::set_containing_line_box_fragment(LineBoxFragment& fragment) | |||
| StackingContext* Box::enclosing_stacking_context() | ||||
| { | ||||
|     for (auto* ancestor = parent(); ancestor; ancestor = ancestor->parent()) { | ||||
|         if (!ancestor->is_box()) | ||||
|         if (!is<Box>(ancestor)) | ||||
|             continue; | ||||
|         auto& ancestor_box = downcast<Box>(*ancestor); | ||||
|         if (!ancestor_box.establishes_stacking_context()) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling