Bug 144037 - Avoid doing work when StyleDifference is StyleDifferenceEqual
Summary: Avoid doing work when StyleDifference is StyleDifferenceEqual
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on: 144198
Blocks:
  Show dependency treegraph
 
Reported: 2015-04-21 21:30 PDT by Simon Fraser (smfr)
Modified: 2015-05-01 15:35 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2015-04-21 21:30:17 PDT
We do work in RenderElement::setStyle(), and the various implementations of styleDidChange() when the style is known to be unchanged. I think we can avoid doing a lot of that work.

Maybe we should short-circuit for the SyntheticStyleChange case that only exists to trigger compositing updates.
Comment 1 Simon Fraser (smfr) 2015-05-01 15:35:52 PDT
This was fixed in r183461