| 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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 } | 418 } |
| 419 }, | 419 }, |
| 420 | 420 |
| 421 /** | 421 /** |
| 422 * @param {!WebInspector.StylePropertiesSection} insertAfterSection | 422 * @param {!WebInspector.StylePropertiesSection} insertAfterSection |
| 423 * @param {string} styleSheetId | 423 * @param {string} styleSheetId |
| 424 * @param {!WebInspector.TextRange} ruleLocation | 424 * @param {!WebInspector.TextRange} ruleLocation |
| 425 */ | 425 */ |
| 426 _addBlankSection: function(insertAfterSection, styleSheetId, ruleLocation) | 426 _addBlankSection: function(insertAfterSection, styleSheetId, ruleLocation) |
| 427 { | 427 { |
| 428 this.requestReveal(); | 428 this.revealWidget(); |
| 429 var node = this.node(); | 429 var node = this.node(); |
| 430 var blankSection = new WebInspector.BlankStylePropertiesSection(this, in
sertAfterSection._matchedStyles, node ? WebInspector.DOMPresentationUtils.simple
Selector(node) : "", styleSheetId, ruleLocation, insertAfterSection._style); | 430 var blankSection = new WebInspector.BlankStylePropertiesSection(this, in
sertAfterSection._matchedStyles, node ? WebInspector.DOMPresentationUtils.simple
Selector(node) : "", styleSheetId, ruleLocation, insertAfterSection._style); |
| 431 | 431 |
| 432 this._sectionsContainer.insertBefore(blankSection.element, insertAfterSe
ction.element.nextSibling); | 432 this._sectionsContainer.insertBefore(blankSection.element, insertAfterSe
ction.element.nextSibling); |
| 433 | 433 |
| 434 for (var block of this._sectionBlocks) { | 434 for (var block of this._sectionBlocks) { |
| 435 var index = block.sections.indexOf(insertAfterSection); | 435 var index = block.sections.indexOf(insertAfterSection); |
| 436 if (index === -1) | 436 if (index === -1) |
| 437 continue; | 437 continue; |
| 438 block.sections.splice(index + 1, 0, blankSection); | 438 block.sections.splice(index + 1, 0, blankSection); |
| (...skipping 2672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3111 | 3111 |
| 3112 /** | 3112 /** |
| 3113 * @override | 3113 * @override |
| 3114 * @return {!WebInspector.ToolbarItem} | 3114 * @return {!WebInspector.ToolbarItem} |
| 3115 */ | 3115 */ |
| 3116 item: function() | 3116 item: function() |
| 3117 { | 3117 { |
| 3118 return this._button; | 3118 return this._button; |
| 3119 } | 3119 } |
| 3120 } | 3120 } |
| OLD | NEW |