[Webkit-unassigned] [Bug 166906] Web Inspector: elements that have an associated compositing layer should have an indicator in DOMTreeOutline

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 11 10:32:28 PST 2017


https://bugs.webkit.org/show_bug.cgi?id=166906

Brian Burg <bburg at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bburg at apple.com

--- Comment #3 from Brian Burg <bburg at apple.com> ---
(In reply to comment #2)
> Are you suggesting we visually distinguish nodes with layers in the DOM
> tree?  If so, would it make sense to dim all nodes without layers when the
> layer sidebar is open?
> 
> On another note, from what I can tell it looks like the current method of
> retrieving layer information is from
> `WebInspector.layerTreeManager.layersForNode`.  If this is true, then I
> think it may make sense for us to only retrieve layer info for nodes when
> the parent is expanded in the tree.  I'm just worried about how well this
> will perform on pages with large numbers of DOM nodes.  Suggestions are
> welcome :D

Calling layersForNode(root) will retrieve all the layers in the document. If you look at the backend, it does a BFS traversal of the render tree and layer tree (not the DOM tree) to collect these. This is fairly cheap afaik; we do this all the time during rendering. Viewing layers on apple.com for the root node is instantaneous, which is good enough for me.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20170111/64bc4922/attachment.html>


More information about the webkit-unassigned mailing list