Bug 268116
| Summary: | Avoid compositing layers for opacity:0 subtrees | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Matt Woodrow <mattwoodrow> |
| Component: | Layout and Rendering | Assignee: | Matt Woodrow <mattwoodrow> |
| Status: | NEW | ||
| Severity: | Normal | CC: | bfulgham, simon.fraser, webkit-bug-importer, zalan |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | |||
| Bug Blocks: | 268117 | ||
Matt Woodrow
Creating compositing layers takes time, and also prevents backing store sharing from working when it otherwise could.
We should be able to skip these while opacity is 0.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/121627710>
Matt Woodrow
Pull request: https://github.com/WebKit/WebKit/pull/23265
Simon Fraser (smfr)
One reason we've avoided doing this in the past is to avoid hiccups when animating away from opacity 0.
Matt Woodrow
I'd argue that this is the purpose of will-change (which isn't handled in the PR currently, but should be).
I realise that it's definitely a perf compat risk though :(