Changeset 221174 in webkit
- Timestamp:
- Aug 24, 2017 5:57:42 PM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 4 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r221166 r221174 1 2017-08-24 Devin Rousso <webkit@devinrousso.com> 2 3 Web Inspector: add filter for draw actions in Recordings 4 https://bugs.webkit.org/show_bug.cgi?id=175448 5 <rdar://problem/34040764> 6 7 Reviewed by Matt Baker. 8 9 * Localizations/en.lproj/localizedStrings.js: 10 11 * UserInterface/Views/RecordingNavigationSidebarPanel.js: 12 (WI.RecordingNavigationSidebarPanel.prototype.initialLayout): 13 (WI.RecordingNavigationSidebarPanel.prototype.matchTreeElementAgainstCustomFilters): 14 Add button to filter visual actions. 15 Drive-by fix: ensure that frame folders are still visible when filtering. 16 17 * UserInterface/Images/Paint.svg: Renamed from Source/WebInspectorUI/UserInterface/Images/PaintFlashing.svg. 18 * UserInterface/Images/gtk/Paint.svg: Renamed from Source/WebInspectorUI/UserInterface/Images/gtk/PaintFlashing.svg. 19 * UserInterface/Views/DOMTreeContentView.js: 20 (WI.DOMTreeContentView): 21 Rename PaintFlashing.svg to Paint.svg. 22 1 23 2017-08-24 Ross Kirsling <ross.kirsling@sony.com> 2 24 -
trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
r221166 r221174 609 609 localizedStrings["Online"] = "Online"; 610 610 localizedStrings["Only show resources with issues"] = "Only show resources with issues"; 611 localizedStrings["Only show visual actions"] = "Only show visual actions"; 611 612 localizedStrings["Opacity"] = "Opacity"; 612 613 localizedStrings["Open"] = "Open"; … … 792 793 localizedStrings["Show Scope Chain on pause"] = "Show Scope Chain on pause"; 793 794 localizedStrings["Show Source"] = "Show Source"; 795 localizedStrings["Show all actions"] = "Show all actions"; 794 796 localizedStrings["Show all resources"] = "Show all resources"; 795 797 localizedStrings["Show compositing borders"] = "Show compositing borders"; -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js
r220119 r221174 37 37 38 38 WI.showPaintRectsSetting.addEventListener(WI.Setting.Event.Changed, this._showPaintRectsSettingChanged, this); 39 this._paintFlashingButtonNavigationItem = new WI.ActivateButtonNavigationItem("paint-flashing", WI.UIString("Enable paint flashing"), WI.UIString("Disable paint flashing"), "Images/Paint Flashing.svg", 16, 16);39 this._paintFlashingButtonNavigationItem = new WI.ActivateButtonNavigationItem("paint-flashing", WI.UIString("Enable paint flashing"), WI.UIString("Disable paint flashing"), "Images/Paint.svg", 16, 16); 40 40 this._paintFlashingButtonNavigationItem.addEventListener(WI.ButtonNavigationItem.Event.Clicked, this._togglePaintFlashing, this); 41 41 this._paintFlashingButtonNavigationItem.enabled = !!PageAgent.setShowPaintRects; -
trunk/Source/WebInspectorUI/UserInterface/Views/RecordingNavigationSidebarPanel.js
r220609 r221174 141 141 const element = null; 142 142 this.addSubview(new WI.NavigationBar(element, [importNavigationItem, exportNavigationItem])); 143 144 let filterFunction = (treeElement) => { 145 if (!(treeElement instanceof WI.RecordingActionTreeElement)) 146 return false; 147 148 return treeElement.representedObject.isVisual; 149 }; 150 151 const activatedByDefault = false; 152 const defaultToolTip = WI.UIString("Only show visual actions"); 153 const activatedToolTip = WI.UIString("Show all actions"); 154 this.filterBar.addFilterBarButton("recording-show-visual-only", filterFunction, activatedByDefault, defaultToolTip, activatedToolTip, "Images/Paint.svg", 15, 15); 155 } 156 157 matchTreeElementAgainstCustomFilters(treeElement) 158 { 159 // Keep recording frame tree elements. 160 if (treeElement instanceof WI.FolderTreeElement) 161 return true; 162 163 return super.matchTreeElementAgainstCustomFilters(treeElement); 143 164 } 144 165
Note: See TracChangeset
for help on using the changeset viewer.