Bug 138448

Summary: Avoid backing store for opacity:0 descendant layers
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, glenn, jonlee, kondapallykalyan, simon.fraser, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 140477    
Attachments:
Description Flags
Patch dino: review+

Description Simon Fraser (smfr) 2014-11-05 18:06:46 PST
Avoid backing store for opacity:0 descendant layers
Comment 1 Simon Fraser (smfr) 2014-11-05 18:08:35 PST
Created attachment 241079 [details]
Patch
Comment 2 Dean Jackson 2014-11-05 18:14:59 PST
Comment on attachment 241079 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=241079&action=review

> Source/WebCore/rendering/RenderLayerCompositor.cpp:885
> +    if (!oldStyle.opacity() != !newStyle.opacity()) {

This is confuserating, but it makes sense after I thought about it for a while.

> LayoutTests/compositing/backing/toggle-opacity-0-child-expected.txt:1
> +FAIL: Timed out waiting for notifyDone to be called

WAT

> LayoutTests/compositing/backing/toggle-opacity-0-child.html:74
> +      <div id="child" class="child box">

child is both id and class. you could have used querySelector instead of getElementById
Comment 3 Simon Fraser (smfr) 2014-11-05 18:22:16 PST
https://trac.webkit.org/r175656

rdar://problem/18869336