Bug 779598 Comment 41 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to Hiroyuki Ikezoe (:hiro) from comment #31)
> I noticed that nsIFrame::DisplayItemData() for the parent frame can be used
> for checking the situation (i.e. the given frame is a child of prerendered
> preserve-3d context).

I'm looking at this patch, and it seems we cannot use `nsIFrame::DisplayitemData()` of the parent frame. In `BuildDisplayListForStackingContext()`, We go through the children of the current transformed frame and build display items for the children first (i.e. deep-first), and then build the `nsDisplayTransform` for the current frame. In other words, we haven't build the parent transform display item yet when calling `ShouldPrerenderTransformedContent()`, IIRC. Perhaps we still need an extra flag for this.
(In reply to Hiroyuki Ikezoe (:hiro) from comment #31)
> I noticed that nsIFrame::DisplayItemData() for the parent frame can be used
> for checking the situation (i.e. the given frame is a child of prerendered
> preserve-3d context).

I'm looking at this patch, and it seems we cannot use `nsIFrame::DisplayitemData()` of the parent frame. In `BuildDisplayListForStackingContext()`, We go through the children of the current transformed frame and build display items for the children first (i.e. deep-first), and then build the `nsDisplayTransform` for the current frame. In other words, we haven't built the parent transform display item yet when calling `ShouldPrerenderTransformedContent()`, IIRC. Perhaps we still need an extra flag for this.

Back to Bug 779598 Comment 41