| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2009 Joseph Pecoraro | 3 * Copyright (C) 2009 Joseph Pecoraro |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 this._showInheritedComputedStylePropertiesSetting = | 45 this._showInheritedComputedStylePropertiesSetting = |
| 46 Common.settings.createSetting('showInheritedComputedStyleProperties', fa
lse); | 46 Common.settings.createSetting('showInheritedComputedStyleProperties', fa
lse); |
| 47 this._showInheritedComputedStylePropertiesSetting.addChangeListener( | 47 this._showInheritedComputedStylePropertiesSetting.addChangeListener( |
| 48 this._showInheritedComputedStyleChanged.bind(this)); | 48 this._showInheritedComputedStyleChanged.bind(this)); |
| 49 | 49 |
| 50 var hbox = this.element.createChild('div', 'hbox styles-sidebar-pane-toolbar
'); | 50 var hbox = this.element.createChild('div', 'hbox styles-sidebar-pane-toolbar
'); |
| 51 var filterContainerElement = hbox.createChild('div', 'styles-sidebar-pane-fi
lter-box'); | 51 var filterContainerElement = hbox.createChild('div', 'styles-sidebar-pane-fi
lter-box'); |
| 52 var filterInput = Elements.StylesSidebarPane.createPropertyFilterElement( | 52 var filterInput = Elements.StylesSidebarPane.createPropertyFilterElement( |
| 53 Common.UIString('Filter'), hbox, filterCallback.bind(this)); | 53 Common.UIString('Filter'), hbox, filterCallback.bind(this)); |
| 54 UI.ARIAUtils.setAccessibleName(filterInput, Common.UIString('Filter Computed
Styles')); |
| 54 filterContainerElement.appendChild(filterInput); | 55 filterContainerElement.appendChild(filterInput); |
| 55 | 56 |
| 56 var toolbar = new UI.Toolbar('styles-pane-toolbar', hbox); | 57 var toolbar = new UI.Toolbar('styles-pane-toolbar', hbox); |
| 57 toolbar.appendToolbarItem(new UI.ToolbarCheckbox( | 58 toolbar.appendToolbarItem(new UI.ToolbarCheckbox( |
| 58 Common.UIString('Show all'), undefined, this._showInheritedComputedStyle
PropertiesSetting)); | 59 Common.UIString('Show all'), undefined, this._showInheritedComputedStyle
PropertiesSetting)); |
| 59 | 60 |
| 60 this._propertiesOutline = new UI.TreeOutlineInShadow(); | 61 this._propertiesOutline = new UI.TreeOutlineInShadow(); |
| 61 this._propertiesOutline.hideOverflow(); | 62 this._propertiesOutline.hideOverflow(); |
| 62 this._propertiesOutline.registerRequiredCSS('elements/computedStyleSidebarPa
ne.css'); | 63 this._propertiesOutline.registerRequiredCSS('elements/computedStyleSidebarPa
ne.css'); |
| 63 this._propertiesOutline.element.classList.add('monospace', 'computed-propert
ies'); | 64 this._propertiesOutline.element.classList.add('monospace', 'computed-propert
ies'); |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 var property = child[Elements.ComputedStyleWidget._propertySymbol]; | 339 var property = child[Elements.ComputedStyleWidget._propertySymbol]; |
| 339 var matched = !regex || regex.test(property.name) || regex.test(property.v
alue); | 340 var matched = !regex || regex.test(property.name) || regex.test(property.v
alue); |
| 340 child.hidden = !matched; | 341 child.hidden = !matched; |
| 341 } | 342 } |
| 342 } | 343 } |
| 343 }; | 344 }; |
| 344 | 345 |
| 345 Elements.ComputedStyleWidget._maxLinkLength = 30; | 346 Elements.ComputedStyleWidget._maxLinkLength = 30; |
| 346 | 347 |
| 347 Elements.ComputedStyleWidget._propertySymbol = Symbol('property'); | 348 Elements.ComputedStyleWidget._propertySymbol = Symbol('property'); |
| OLD | NEW |