| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 * @this {WebInspector.ComputedStyleWidget} | 66 * @this {WebInspector.ComputedStyleWidget} |
| 67 */ | 67 */ |
| 68 function filterCallback(regex) | 68 function filterCallback(regex) |
| 69 { | 69 { |
| 70 this._filterRegex = regex; | 70 this._filterRegex = regex; |
| 71 this._updateFilter(regex); | 71 this._updateFilter(regex); |
| 72 } | 72 } |
| 73 | 73 |
| 74 var fontsWidget = new WebInspector.PlatformFontsWidget(this._computedStyleMo
del); | 74 var fontsWidget = new WebInspector.PlatformFontsWidget(this._computedStyleMo
del); |
| 75 fontsWidget.show(this.element); | 75 fontsWidget.show(this.element); |
| 76 } | 76 }; |
| 77 | 77 |
| 78 WebInspector.ComputedStyleWidget._propertySymbol = Symbol("property"); | 78 WebInspector.ComputedStyleWidget._propertySymbol = Symbol("property"); |
| 79 | 79 |
| 80 WebInspector.ComputedStyleWidget.prototype = { | 80 WebInspector.ComputedStyleWidget.prototype = { |
| 81 _showInheritedComputedStyleChanged: function() | 81 _showInheritedComputedStyleChanged: function() |
| 82 { | 82 { |
| 83 this.update(); | 83 this.update(); |
| 84 }, | 84 }, |
| 85 | 85 |
| 86 /** | 86 /** |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 { | 350 { |
| 351 var children = this._propertiesOutline.rootElement().children(); | 351 var children = this._propertiesOutline.rootElement().children(); |
| 352 for (var child of children) { | 352 for (var child of children) { |
| 353 var property = child[WebInspector.ComputedStyleWidget._propertySymbo
l]; | 353 var property = child[WebInspector.ComputedStyleWidget._propertySymbo
l]; |
| 354 var matched = !regex || regex.test(property.name) || regex.test(prop
erty.value); | 354 var matched = !regex || regex.test(property.name) || regex.test(prop
erty.value); |
| 355 child.hidden = !matched; | 355 child.hidden = !matched; |
| 356 } | 356 } |
| 357 }, | 357 }, |
| 358 | 358 |
| 359 __proto__: WebInspector.ThrottledWidget.prototype | 359 __proto__: WebInspector.ThrottledWidget.prototype |
| 360 } | 360 }; |
| OLD | NEW |