Bug 122334 - [CSS Shapes] Optimize relayout when shape-outside changes
Summary: [CSS Shapes] Optimize relayout when shape-outside changes
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks: 98664
  Show dependency treegraph
 
Reported: 2013-10-04 11:29 PDT by Bear Travis
Modified: 2014-02-07 14:34 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?