Bug 58539 - WebKit1's WebView sometimes does some extra work when a layout-before-paint puts the page into accelerated compositing mode
Summary: WebKit1's WebView sometimes does some extra work when a layout-before-paint p...
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Windows 7
: P2 Normal
Assignee: Nobody
URL:
Keywords: PlatformOnly
Depends on:
Blocks:
 
Reported: 2011-04-14 06:49 PDT by Adam Roben (:aroben)
Modified: 2011-04-14 06:49 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2011-04-14 06:49:07 PDT
Whenever WebView is about to paint, it first does a layout to ensure it's painting up-to-date bits. This layout can put the page into accelerated compositing mode. But WebView doesn't detect that this has happened, and goes ahead and finishes the paint anyway, even though the painted bits will never be seen (since now rendering is being taken care of by the layer tree host).

It would be somewhat more efficient for WebView to detect that this has happened and bail out of the paint.