Bug 98734

Summary: enclosingLayer() walks the entire parent chain, making it slow for deep trees
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: jamesr, jchaffraix, simon.fraser, tonikitoo
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 98798    

Description Eric Seidel (no email) 2012-10-09 02:31:27 PDT
enclosingLayer() walks the entire parent chain, making it slow for deep trees

It makes repaint/layout samples account for about 30% of:
http://www.robohornet.org/tests/descendantselector.html

(which I'm not suggesting is either a good or bad benchmark, merely one which triggers this condition.)
Comment 1 Simon Fraser (smfr) 2012-10-09 10:21:57 PDT
I assume you mean "slow for deep, layer-sparse trees"?
Comment 2 Eric Seidel (no email) 2012-10-10 11:03:21 PDT
Yes, deep, layer-sparse. :)