Bug 86512 - [chromium] Overlap testing gets disabled in Chromium even when animating within overflow:hidden areas
Summary: [chromium] Overlap testing gets disabled in Chromium even when animating with...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Adrienne Walker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-15 12:52 PDT by Vangelis Kokkevis
Modified: 2013-04-08 11:35 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 Vangelis Kokkevis 2012-05-15 12:52:47 PDT
As of http://trac.webkit.org/changeset/115989 , the webkit nightlies don't disable overlap testing in RLC for accelerated animations if the animation is confined within an overflow:hidden area. This results in the creation of far fewer layers in some cases.   For some reason, the trick doesn't seem to take effect in Chrome. Here are steps to repro:

1. Turn on composited layer borders
2. Navigate to: http://www.flickr.com/
3. Click on one of the little bullets below the main banner picture to flip to the next image.  This activates a CSS transform animation.  Notice how in chrome, while the animation is playing there are new layers created below the image.  That doesn't happen in WebKit nightlies after 115989 .
Comment 1 Adrienne Walker 2012-05-16 17:59:40 PDT
I see what the problem is in Chromium.  If a layer both animates and clips but has no compositing descendants, then the check in RenderLayerCompositor.cpp:838 fails and the overlap testing isn't put back on.  That looks like an oversight to me.

My guess is that something other layer gets composited for Safari in that subtree and so that check succeeds, but I haven't verified this.