Bug 122334

Summary: [CSS Shapes] Optimize relayout when shape-outside changes
Product: WebKit Reporter: Bear Travis <betravis>
Component: CSSAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: bfulgham, zoltan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 98664    

Description Bear Travis 2013-10-04 11:29:32 PDT
The layout code can repeatedly remove a float from the block lists, which is costly. This should be consolidated or short circuited so the heavy lifting is only done once.
See RenderElement::styleWillChange, RenderBox::styleWillChange, and RenderBox::styleDidChange.

Also, are there cases where removing / adding / changing a shape would not require relayout, and should we optimize for these?
Comment 1 Brent Fulgham 2022-07-15 14:29:30 PDT
This code has been significantly refactored since this improvement was proposed. There doesn't seem to be any action we can take here.