Changeset 158788 in webkit
- Timestamp:
- Nov 6, 2013, 2:08:46 PM (12 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r158440 r158788 1 2013-11-06 Alexandru Chiculita <achicu@adobe.com> 2 3 Web Inspector: CSS Regions: When a flow is clicked the content of flow needs to be displayed 4 https://bugs.webkit.org/show_bug.cgi?id=122927 5 6 Reviewed by Joseph Pecoraro. 7 8 ContentFlowTreeContentView is now used to display the content nodes of a ContentFlow. It is 9 very similar to the DOMTreeContentView class, but can handle multiple root nodes. 10 11 * UserInterface/ContentFlowTreeContentView.js: Added. 12 (WebInspector.ContentFlowTreeContentView): 13 (WebInspector.ContentFlowTreeContentView.prototype.get selectionPathComponents): 14 (WebInspector.ContentFlowTreeContentView.prototype.updateLayout): 15 (WebInspector.ContentFlowTreeContentView.prototype.shown): 16 (WebInspector.ContentFlowTreeContentView.prototype.hidden): 17 (WebInspector.ContentFlowTreeContentView.prototype.closed): 18 (WebInspector.ContentFlowTreeContentView.prototype._selectedNodeDidChange): 19 (WebInspector.ContentFlowTreeContentView.prototype._pathComponentSelected): 20 (WebInspector.ContentFlowTreeContentView.prototype._createContentNodeTree): 21 (WebInspector.ContentFlowTreeContentView.prototype._createContentTrees): 22 (WebInspector.ContentFlowTreeContentView.prototype._contentNodeWasAdded): 23 (WebInspector.ContentFlowTreeContentView.prototype._contentNodeWasRemoved): 24 * UserInterface/ContentView.js: 25 (WebInspector.ContentView): 26 (WebInspector.ContentView.isViewable): 27 * UserInterface/DOMTreeElement.js: 28 (WebInspector.DOMTreeElement.prototype.ondeselect): We need to remove the selected "dom node" 29 so that the element is not going to stay selected after the we move to a different DOM tree. 30 * UserInterface/DOMTreeOutline.js: 31 (WebInspector.DOMTreeOutline.prototype.selectDOMNode): 32 * UserInterface/Main.html: 33 * UserInterface/Main.js: 34 (WebInspector.sidebarPanelForRepresentedObject): 35 * UserInterface/ResourceSidebarPanel.js: 36 (WebInspector.ResourceSidebarPanel.prototype._treeElementSelected): 37 1 38 2013-11-01 Antoine Quint <graouts@apple.com> 2 39 -
trunk/Source/WebInspectorUI/UserInterface/ContentFlow.js
r158159 r158788 13 13 * disclaimer in the documentation and/or other materials 14 14 * provided with the distribution. 15 * 15 * 16 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER "AS IS" AND ANY 17 17 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE … … 47 47 48 48 constructor: WebInspector.ContentFlow, 49 __proto__: WebInspector.Object.prototype, 49 50 50 51 // Public … … 106 107 } 107 108 }; 108 109 110 WebInspector.ContentFlow.prototype.__proto__ = WebInspector.Object.prototype; -
trunk/Source/WebInspectorUI/UserInterface/ContentView.js
r157269 r158788 73 73 return new WebInspector.CanvasProfileView(representedObject); 74 74 75 if (representedObject instanceof WebInspector.ContentFlow) 76 return new WebInspector.ContentFlowTreeContentView(representedObject); 77 75 78 if (typeof representedObject === "string" || representedObject instanceof String) 76 79 return new WebInspector.TextContentView(representedObject); … … 126 129 return true; 127 130 if (representedObject instanceof WebInspector.CanvasProfileObject) 131 return true; 132 if (representedObject instanceof WebInspector.ContentFlow) 128 133 return true; 129 134 if (typeof representedObject === "string" || representedObject instanceof String) -
trunk/Source/WebInspectorUI/UserInterface/DOMTreeElement.js
r157459 r158788 482 482 }, 483 483 484 ondeselect: function(treeElement) 485 { 486 this.treeOutline.selectDOMNode(null); 487 }, 488 484 489 ondelete: function() 485 490 { -
trunk/Source/WebInspectorUI/UserInterface/DOMTreeOutline.js
r156672 r158788 156 156 // avoid calling _selectedNodeChanged() twice, first check if _selectedDOMNode is the same 157 157 // node as the one passed in. 158 if (this._selectedDOMNode === node) 158 // Note that _revealAndSelectNode will not do anything for a null node. 159 if (!node || this._selectedDOMNode === node) 159 160 this._selectedNodeChanged(); 160 161 }, -
trunk/Source/WebInspectorUI/UserInterface/Main.html
r157938 r158788 401 401 <script src="LoadLocalizedStrings.js"></script> 402 402 <script src="GoToLineDialog.js"></script> 403 <script src="ContentFlowTreeContentView.js"></script> 403 404 <script src="Main.js"></script> 404 405 -
trunk/Source/WebInspectorUI/UserInterface/Main.js
r157938 r158788 323 323 { 324 324 if (representedObject instanceof WebInspector.Frame || representedObject instanceof WebInspector.Resource || 325 representedObject instanceof WebInspector.Script )325 representedObject instanceof WebInspector.Script || representedObject instanceof WebInspector.ContentFlow) 326 326 return this.resourceSidebarPanel; 327 327 -
trunk/Source/WebInspectorUI/UserInterface/ResourceSidebarPanel.js
r157649 r158788 611 611 _treeElementSelected: function(treeElement, selectedByUser) 612 612 { 613 if (treeElement instanceof WebInspector.ContentFlowTreeElement) {614 // FIXME: Implement DOM tree inspector for content flow tree elements.615 // https://bugs.webkit.org/show_bug.cgi?id=122927616 console.log("Content Flow view not implemented");617 return;618 }619 620 613 if (treeElement instanceof WebInspector.FolderTreeElement) 621 614 return; … … 623 616 if (treeElement instanceof WebInspector.ResourceTreeElement || treeElement instanceof WebInspector.ScriptTreeElement || 624 617 treeElement instanceof WebInspector.StorageTreeElement || treeElement instanceof WebInspector.DatabaseTableTreeElement || 625 treeElement instanceof WebInspector.DatabaseTreeElement || treeElement instanceof WebInspector.ApplicationCacheFrameTreeElement) { 618 treeElement instanceof WebInspector.DatabaseTreeElement || treeElement instanceof WebInspector.ApplicationCacheFrameTreeElement || 619 treeElement instanceof WebInspector.ContentFlowTreeElement) { 626 620 WebInspector.contentBrowser.showContentViewForRepresentedObject(treeElement.representedObject); 627 621 return;
Note:
See TracChangeset
for help on using the changeset viewer.