Bug 110164 - Web Inspector: provide the id of associated nodes for layers when calling InspectorLayerTreeAgent::getLayerTree()
Summary: Web Inspector: provide the id of associated nodes for layers when calling Ins...
Status: RESOLVED WONTFIX
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Antoine Quint
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2013-02-18 16:03 PST by Antoine Quint
Modified: 2013-02-20 16:50 PST (History)
11 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2013-02-18 16:03:16 PST
Right now, the layer tree provided by InspectorLayerTreeAgent::getLayerTree() only lists layer ids, but not the id of the layer's associated node. In order to get that id, the front-end needs to call InspectorLayerTreeAgent::nodeIdForLayerId(). However, the frequency of "layerTreeDidChange" events might be high enough that the resulting calls to getLayerTree() and subsequent calls to nodeIdForLayerId() would have the unexpected impacts of obtaining the node ids for layers that were reported too long ago and the layer tree has already changed significantly.

We should let getLayerTree() report node IDs in the returned object without pushing the nodes to the front-end. That way the front-end will be able to use that information without having to request information from the backend with the latency involved.
Comment 1 Radar WebKit Bug Importer 2013-02-18 16:03:57 PST
<rdar://problem/13239602>
Comment 2 Antoine Quint 2013-02-20 16:50:26 PST
Closing this since the bigger changes I plan to make in https://bugs.webkit.org/show_bug.cgi?id=110407 encompass this task.