Bug 186280

Summary: Hiding many elements with opacity:0 is slower than hiding with visibility:hidden
Product: WebKit Reporter: Jon Lee <jonlee>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bfulgham, simon.fraser, zalan
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Jon Lee 2018-06-04 13:41:24 PDT
Hiding many elements with opacity:0 is slower than hiding with visibility:hidden
Comment 1 Simon Fraser (smfr) 2018-06-04 13:47:22 PDT
It looks like we spend more time in RenderLayer::updateLayerPositionsAfterLayout() with opacity, presumably because we have a large RenderLayer tree and don’t short-circuit that part. With visibility:hidden we probably have a smaller layer tree.