[Webkit-unassigned] [Bug 110407] New: Web Inspector: closer connection between layers and nodes through the LayerTreeAgent protocol
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Feb 20 16:46:04 PST 2013
https://bugs.webkit.org/show_bug.cgi?id=110407
Summary: Web Inspector: closer connection between layers and
nodes through the LayerTreeAgent protocol
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P2
Component: Web Inspector
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: graouts at apple.com
CC: timothy at apple.com, keishi at webkit.org,
pmuellr at yahoo.com, joepeck at webkit.org,
pfeldman at chromium.org, yurys at chromium.org,
apavlov at chromium.org, loislo at chromium.org,
vsevik at chromium.org,
webkit-bug-importer at group.apple.com,
web-inspector-bugs at googlegroups.com
In practice, we're only interested in showing layers displayed for nodes in a particular subtree. However, the LayerTreeAgent exposes a single method to get layers through .getLayerTree() which returns the entire document's layer tree. This can be a lot of data depending on the complexity of the document, and a lot of this data may turn out to be completely useless to the front-end. This bug covers replacing the .getLayerTree() method with a new .layersForNode() method which operates only on the scope of a particular Element. The functionality of .getLayerTree() should still be available by calling .layersForNode() with the root element or Document node as parameter.
Additionally, we should also make the change such that we expose the node id of the layer's associated node, even when that node hasn't been pushed to the front-end yet. This will allow to capture the cases where layers are trashed and recreated for the same node, allowing the front-end not to mark these changes as an update rather than a completely new layer, since the relevant object is the node rather than the layer.
Finally, it may not be necessary to return a tree structure but rather just a flat list of layers should suffice.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list