Summary: | Avoid compositing out-of-view fixed positioned elements | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Xianzhu Wang <wangxianzhu> | ||||||
Component: | Layout and Rendering | Assignee: | Xianzhu Wang <wangxianzhu> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | jamesr, klobag, simon.fraser, vangelis, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Attachments: |
|
Description
Xianzhu Wang
2012-02-08 17:26:20 PST
Created attachment 126202 [details]
patch for preview (missing test)
Comment on attachment 126202 [details]
patch for preview (missing test)
This is a nice find. For testing, I'd recommend use the layerTreeAsText() hook to make sure that we aren't making GraphicsLayers that we don't need to.
Created attachment 126418 [details]
patch with layout test
Comment on attachment 126418 [details]
patch with layout test
Great! R=me
Comment on attachment 126418 [details] patch with layout test Clearing flags on attachment: 126418 Committed r107364: <http://trac.webkit.org/changeset/107364> All reviewed patches have been landed. Closing bug. Changed title to be more accurate. There's a problem with this strategy, when combined with zooming;when zoomed in, we may consider a fixed element to be outside the viewport, and not composite it. However, zooming may bring that element back into the viewport, but if it doesn't have a layer yet, it won't be visible while zooming. (In reply to comment #8) > There's a problem with this strategy, when combined with zooming;when zoomed in, we may consider a fixed element to be outside the viewport, and not composite it. However, zooming may bring that element back into the viewport, but if it doesn't have a layer yet, it won't be visible while zooming. Thanks for the finding. Filed bug 105202. |