OLD | NEW |
---|---|
1 function initialize_LayerTreeTests() | 1 function initialize_LayerTreeTests() |
2 { | 2 { |
3 InspectorTest.layerTreeModel = function() | 3 InspectorTest.layerTreeModel = function() |
4 { | 4 { |
5 if (!InspectorTest._layerTreeModel) | 5 if (!InspectorTest._layerTreeModel) |
6 InspectorTest._layerTreeModel = WebInspector.LayerTreeModel.fromTarg et(InspectorTest.mainTarget); | 6 InspectorTest._layerTreeModel = WebInspector.LayerTreeModel.fromTarg et(InspectorTest.mainTarget); |
7 return InspectorTest._layerTreeModel; | 7 return InspectorTest._layerTreeModel; |
8 } | 8 } |
9 | 9 |
10 InspectorTest.labelForLayer = function(layer) | 10 InspectorTest.labelForLayer = function(layer) |
(...skipping 14 matching lines...) Expand all Loading... | |
25 if (!prefix) | 25 if (!prefix) |
26 prefix = ""; | 26 prefix = ""; |
27 if (!root) { | 27 if (!root) { |
28 root = InspectorTest.layerTreeModel().layerTree().contentRoot(); | 28 root = InspectorTest.layerTreeModel().layerTree().contentRoot(); |
29 if (!root) { | 29 if (!root) { |
30 InspectorTest.addResult("No layer root, perhaps not in the compo sited mode! "); | 30 InspectorTest.addResult("No layer root, perhaps not in the compo sited mode! "); |
31 InspectorTest.completeTest(); | 31 InspectorTest.completeTest(); |
32 return; | 32 return; |
33 } | 33 } |
34 } | 34 } |
35 InspectorTest.addResult(prefix + InspectorTest.labelForLayer(root)); | 35 if (root.drawsContent()) |
vmpstr
2016/05/31 22:16:16
Why this change?
sunxd
2016/05/31 22:41:52
See the comment in layer-tree.html, the background
| |
36 InspectorTest.addResult(prefix + InspectorTest.labelForLayer(root)); | |
36 root.children().forEach(InspectorTest.dumpLayerTree.bind(InspectorTest, prefix + " ")); | 37 root.children().forEach(InspectorTest.dumpLayerTree.bind(InspectorTest, prefix + " ")); |
37 } | 38 } |
38 | 39 |
39 InspectorTest.dumpLayers3DView = function(prefix, root) | 40 InspectorTest.dumpLayers3DView = function(prefix, root) |
40 { | 41 { |
41 if (!prefix) | 42 if (!prefix) |
42 prefix = ""; | 43 prefix = ""; |
43 if (!root) | 44 if (!root) |
44 root = WebInspector.panels.layers._layers3DView._rotatingContainerEl ement; | 45 root = WebInspector.panels.layers._layers3DView._rotatingContainerEl ement; |
45 if (root.__layer) | 46 if (root.__layer) |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
118 }; | 119 }; |
119 if (eventType === "mouseout") { | 120 if (eventType === "mouseout") { |
120 eventArguments.screenX = 0; | 121 eventArguments.screenX = 0; |
121 eventArguments.screenY = 0; | 122 eventArguments.screenY = 0; |
122 eventArguments.clientX = 0; | 123 eventArguments.clientX = 0; |
123 eventArguments.clientY = 0; | 124 eventArguments.clientY = 0; |
124 } | 125 } |
125 element.dispatchEvent(new MouseEvent(eventType, eventArguments)); | 126 element.dispatchEvent(new MouseEvent(eventType, eventArguments)); |
126 } | 127 } |
127 } | 128 } |
OLD | NEW |