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 Rendering | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bfulgham, simon.fraser, zalan |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Jon Lee
Hiding many elements with opacity:0 is slower than hiding with visibility:hidden
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Simon Fraser (smfr)
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.