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   

Jon Lee
Reported 2018-06-04 13:41:24 PDT
Hiding many elements with opacity:0 is slower than hiding with visibility:hidden
Attachments
Simon Fraser (smfr)
Comment 1 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.
Note You need to log in before you can comment on or make changes to this bug.