mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:12:45 +00:00 
			
		
		
		
	LibWeb: Restore clipping of positioned descendants
63c727a was meant to stop clipping absolutely positioned descendants,
but used `is_positioned()` rather than `is_absolutely_positioned()`,
which meant it disabled clipping in many more cases that it should
have.This commit is contained in:
		
							parent
							
								
									7165dbce5c
								
							
						
					
					
						commit
						c3841e1667
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -135,7 +135,7 @@ void StackingContext::paint_internal(PaintContext& context) const | |||
| 
 | ||||
|     auto paint_child = [&](auto* child) { | ||||
|         auto parent = child->m_box.parent(); | ||||
|         auto should_clip_overflow = child->m_box.is_positioned() ? Paintable::ShouldClipOverflow::No : Paintable::ShouldClipOverflow::Yes; | ||||
|         auto should_clip_overflow = child->m_box.is_absolutely_positioned() ? Paintable::ShouldClipOverflow::No : Paintable::ShouldClipOverflow::Yes; | ||||
|         auto* paintable = parent ? parent->paintable() : nullptr; | ||||
|         if (paintable) | ||||
|             paintable->before_children_paint(context, PaintPhase::Foreground, should_clip_overflow); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 MacDue
						MacDue