Bug 186280 - Hiding many elements with opacity:0 is slower than hiding with visibility:hidden
Summary: Hiding many elements with opacity:0 is slower than hiding with visibility:hidden
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-04 13:41 PDT by Jon Lee
Modified: 2018-06-04 13:47 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.