<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:bburg@apple.com" title="Brian Burg <bburg@apple.com>"> <span class="fn">Brian Burg</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: elements that have an associated compositing layer should have an indicator in DOMTreeOutline"
href="https://bugs.webkit.org/show_bug.cgi?id=166906">bug 166906</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>bburg@apple.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: elements that have an associated compositing layer should have an indicator in DOMTreeOutline"
href="https://bugs.webkit.org/show_bug.cgi?id=166906#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - Web Inspector: elements that have an associated compositing layer should have an indicator in DOMTreeOutline"
href="https://bugs.webkit.org/show_bug.cgi?id=166906">bug 166906</a>
from <span class="vcard"><a class="email" href="mailto:bburg@apple.com" title="Brian Burg <bburg@apple.com>"> <span class="fn">Brian Burg</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=166906#c2">comment #2</a>)
<span class="quote">> 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</span >
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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>