Thanks for the reply. My problem with display lists is that they only contain 
this information about nodes within the viewport. I'm interested in all nodes 
that take up space within the document.

I know Firefox can calculate the necessary information for nodes outside of the 
viewport because I can take a screenshot of the entire page with 
CanvasRenderingContext2D.drawWindow() and it correctly renders the entire page 
(also outside of the viewport).

I don't follow you entirely on this:
> The answer, in general, is that two nodes may not be "in front" of each other 
> at all.

Document.elementsFromPoint() can return all nodes at a specific coordinate in 
'visual order'. It returns which elements are in front of others. But this is 
again restricted to the viewport and I don't want it for a specific coordinate, 
but for all nodes within the document.

On Thursday, 14 April 2016 18:03:11 UTC+2, Boris Zbarsky  wrote:
> On 4/14/16 10:52 AM, Jip de Beer wrote:
> > The Frame Dump doesn't contain any information about z-order.
> 
> That information is not stored in the frame tree, really.  It's computed 
> during display list construction.
> 
> > How can I know which nodes are in front of other nodes?
> 
> The answer, in general, is that two nodes may not be "in front" of each 
> other at all.  That is, parts of one node may be in front of parts of 
> the other while other parts are behind it.
> 
> -Boris


On Thursday, 14 April 2016 18:03:11 UTC+2, Boris Zbarsky  wrote:
> On 4/14/16 10:52 AM, Jip de Beer wrote:
> > The Frame Dump doesn't contain any information about z-order.
> 
> That information is not stored in the frame tree, really.  It's computed 
> during display list construction.
> 
> > How can I know which nodes are in front of other nodes?
> 
> The answer, in general, is that two nodes may not be "in front" of each 
> other at all.  That is, parts of one node may be in front of parts of 
> the other while other parts are behind it.
> 
> -Boris
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to