Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Web Inspector: Make 3D objects selectable in Layers visualization
https://bugs.webkit.org/show_bug.cgi?id=178136 Patch by Ross Kirsling <ross.kirsling@sony.com> on 2017-10-11 Reviewed by Devin Rousso. * UserInterface/Views/Layers3DContentView.js: (WI.Layers3DContentView): (WI.Layers3DContentView.prototype.initialLayout): (WI.Layers3DContentView.prototype._canvasMouseDown): (WI.Layers3DContentView.prototype._updateLayerGroupSelection): Implement selection of 3D layer objects. (WI.Layers3DContentView.prototype._addLayerGroup): Renamed from _addLayer. (WI.Layers3DContentView.prototype._updateLayerGroupPosition): (WI.Layers3DContentView.prototype._createLayerMesh): Refactor -- one group per layer (visible plane and composited outline), not groups by shape. (WI.Layers3DContentView.prototype.layout): (WI.Layers3DContentView.prototype._updateLayers): (WI.Layers3DContentView.prototype._clearLayers): Deleted. Don't destroy all 3D objects on every LayerTreeDidChange; make use of layerTreeMutations. (Not only a performance improvement, but also necessary to properly preserve highlighting.) (WI.Layers3DContentView.prototype.selectLayerById): Allow selection to be updated from the outside. * UserInterface/Views/LayerDetailsSidebarPanel.js: (WI.LayerDetailsSidebarPanel.prototype.selectNodeByLayerId): (WI.LayerDetailsSidebarPanel.prototype._buildDataGrid): (WI.LayerDetailsSidebarPanel.prototype._dataGridSelectedNodeChanged): Allow selection to be updated from the outside. (WI.LayerDetailsSidebarPanel.prototype.inspect): (WI.LayerDetailsSidebarPanel.prototype._updateLayers): Renamed from _updateDisplayWithLayers. (WI.LayerDetailsSidebarPanel.prototype._updateDataGrid): (WI.LayerDetailsSidebarPanel.prototype._updateBottomBar): (WI.LayerDetailsSidebarPanel.prototype._contentForPopover): (WI.LayerDetailsSidebarPanel.prototype._dataGridNodeForLayer): Deleted. Cleanup. * UserInterface/Views/LayersTabContentView.js: (WI.LayersTabContentView): (WI.LayersTabContentView.prototype._detailsSidebarSelectedLayerChanged): (WI.LayersTabContentView.prototype._contentViewSelectedLayerChanged): Orchestrate communication of selection state between visualization and sidebar. Canonical link: https://commits.webkit.org/194438@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223209 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
36c331f
commit 0f71d9d4484c8072ec1d7d3dce0e04d5c420b8b3
Showing
4 changed files
with
223 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.