Changeset 172839 in webkit
- Timestamp:
- Aug 21, 2014 4:49:12 PM (10 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r172820 r172839 1 2014-08-21 Simon Fraser <simon.fraser@apple.com> 2 3 Add a button to enable paint flashing in the web inspector 4 https://bugs.webkit.org/show_bug.cgi?id=136133 5 6 Reviewed by Tim Hatcher. 7 8 Add a button to the right of the layer borders button to turn on paint flashing. 9 Future patches will actually enable this feature. 10 11 * Localizations/en.lproj/localizedStrings.js: Tooltip strings. 12 * UserInterface/Images/PaintFlashing.svg: Added. "Paintbrush" icon. 13 * UserInterface/Views/DOMTreeContentView.js: 14 (WebInspector.DOMTreeContentView): 15 (WebInspector.DOMTreeContentView.prototype.get navigationItems): 16 (WebInspector.DOMTreeContentView.prototype._togglePaintFlashing): 17 1 18 2014-08-20 Saam Barati <sbarati@apple.com> 2 19 -
trunk/Source/WebInspectorUI/Localizations/en.lproj/localizedStrings.js
r172435 r172839 135 135 localizedStrings["Disable Breakpoints"] = "Disable Breakpoints"; 136 136 localizedStrings["Disable all breakpoints"] = "Disable all breakpoints"; 137 localizedStrings["Disable paint flashing"] = "Disable paint flashing"; 137 138 localizedStrings["Disable point to inspect mode (%s)"] = "Disable point to inspect mode (%s)"; 138 139 localizedStrings["Disabled"] = "Disabled"; … … 182 183 localizedStrings["Enable Breakpoints"] = "Enable Breakpoints"; 183 184 localizedStrings["Enable all breakpoints"] = "Enable all breakpoints"; 185 localizedStrings["Enable paint flashing"] = "Enable paint flashing"; 184 186 localizedStrings["Enable point to inspect mode (%s)"] = "Enable point to inspect mode (%s)"; 185 187 localizedStrings["Encoded"] = "Encoded"; -
trunk/Source/WebInspectorUI/UserInterface/Views/DOMTreeContentView.js
r172241 r172839 43 43 this._compositingBordersButtonNavigationItem.enabled = !!PageAgent.getCompositingBordersVisible; 44 44 45 this._paintFlashingButtonNavigationItem = new WebInspector.ActivateButtonNavigationItem("paint-flashing", WebInspector.UIString("Enable paint flashing"), WebInspector.UIString("Disable paint flashing"), "Images/PaintFlashing.svg", 16, 16); 46 this._paintFlashingButtonNavigationItem.addEventListener(WebInspector.ButtonNavigationItem.Event.Clicked, this._togglePaintFlashing, this); 47 this._paintFlashingButtonNavigationItem.enabled = true; 48 45 49 WebInspector.showShadowDOMSetting.addEventListener(WebInspector.Setting.Event.Changed, this._showShadowDOMSettingChanged, this); 46 50 this._showsShadowDOMButtonNavigationItem = new WebInspector.ActivateButtonNavigationItem("shows-shadow-DOM", WebInspector.UIString("Show shadow DOM nodes"), WebInspector.UIString("Hide shadow DOM nodes"), shadowDOMImage.src, shadowDOMImage.width, shadowDOMImage.height); … … 75 79 get navigationItems() 76 80 { 77 return [this._showsShadowDOMButtonNavigationItem, this._compositingBordersButtonNavigationItem ];81 return [this._showsShadowDOMButtonNavigationItem, this._compositingBordersButtonNavigationItem, this._paintFlashingButtonNavigationItem]; 78 82 }, 79 83 … … 415 419 }, 416 420 421 _togglePaintFlashing: function(event) 422 { 423 console.assert(PageAgent.setShowPaintRects); 424 425 var activated = !this._paintFlashingButtonNavigationItem.activated; 426 this._paintFlashingButtonNavigationItem.activated = activated; 427 PageAgent.setShowPaintRects(activated); 428 }, 429 417 430 _updateCompositingBordersButtonToMatchPageSettings: function() 418 431 {
Note: See TracChangeset
for help on using the changeset viewer.