Summary: | Perf improvement via caching Element::styleForRenderer() | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Peter Kotwicz <pkotwicz> | ||||
Component: | WebCore Misc. | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | UNCONFIRMED --- | ||||||
Severity: | Normal | CC: | jamesr, koivisto, simon.fraser | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Attachments: |
|
Description
Peter Kotwicz
2012-01-17 08:36:18 PST
I'm planning to get rid of NodeRenderingFactory class which just confuses things. Computing the style twice in case of attach() triggered from recalcStyle is indeed a problem that should be fixed. Created attachment 122784 [details]
test case
I did a bit more measurements. For a reasonable web site, for a page where the recalc is done twice, this produces a performance improvement in Element::recalcStyle of about 1% |