Bug 25082 - Clean up repaint logic when composited layers come and go
Summary: Clean up repaint logic when composited layers come and go
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-07 14:26 PDT by Simon Fraser (smfr)
Modified: 2009-04-07 15:41 PDT (History)
0 users

See Also:


Attachments
Patch, changelog (11.31 KB, patch)
2009-04-07 14:32 PDT, Simon Fraser (smfr)
mitz: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2009-04-07 14:26:10 PDT
The current code that tries to repaint when RenderLayers become, and stop being compositing does not get it right. This needs cleaning up.
Comment 1 Simon Fraser (smfr) 2009-04-07 14:32:55 PDT
Created attachment 29317 [details]
Patch, changelog
Comment 2 mitz 2009-04-07 14:41:34 PDT
Comment on attachment 29317 [details]
Patch, changelog

> +    if (!repaintContainer)
> +        repaintContainer= m_renderView;

Missing space before the =.

> +    // Update the compositing state of the given layer. Returns true if that state changed.
> +    bool updateLayerCompositingState(RenderLayer*, bool mustRepaint = true);

I would like to channel Darin Adler and suggest that you use an enum instead of a bool.

r=me
Comment 3 Simon Fraser (smfr) 2009-04-07 15:41:20 PDT
I did the enum.
http://trac.webkit.org/changeset/42291