| 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 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 | 491 |
| 492 for (var pseudoId in this.sections) { | 492 for (var pseudoId in this.sections) { |
| 493 var sections = this.sections[pseudoId]; | 493 var sections = this.sections[pseudoId]; |
| 494 for (var i = 0; i < sections.length; ++i) | 494 for (var i = 0; i < sections.length; ++i) |
| 495 sections[i].update(true); | 495 sections[i].update(true); |
| 496 } | 496 } |
| 497 }, | 497 }, |
| 498 | 498 |
| 499 _createNewRule: function(event) | 499 _createNewRule: function(event) |
| 500 { | 500 { |
| 501 this.expanded = true; |
| 501 this.addBlankSection().startEditingSelector(); | 502 this.addBlankSection().startEditingSelector(); |
| 502 }, | 503 }, |
| 503 | 504 |
| 504 addBlankSection: function() | 505 addBlankSection: function() |
| 505 { | 506 { |
| 506 var blankSection = new WebInspector.BlankStylePropertiesSection(this, th
is.node ? this.node.appropriateSelectorFor(true) : ""); | 507 var blankSection = new WebInspector.BlankStylePropertiesSection(this, th
is.node ? this.node.appropriateSelectorFor(true) : ""); |
| 507 blankSection.pane = this; | 508 blankSection.pane = this; |
| 508 | 509 |
| 509 var elementStyleSection = this.sections[0][1]; | 510 var elementStyleSection = this.sections[0][1]; |
| 510 this.bodyElement.insertBefore(blankSection.element, elementStyleSection.
element.nextSibling); | 511 this.bodyElement.insertBefore(blankSection.element, elementStyleSection.
element.nextSibling); |
| (...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2025 return completionsReadyCallback(results); | 2026 return completionsReadyCallback(results); |
| 2026 } | 2027 } |
| 2027 | 2028 |
| 2028 results = this._cssCompletions.startsWith(prefix); | 2029 results = this._cssCompletions.startsWith(prefix); |
| 2029 if (results) | 2030 if (results) |
| 2030 completionsReadyCallback(results); | 2031 completionsReadyCallback(results); |
| 2031 } | 2032 } |
| 2032 } | 2033 } |
| 2033 | 2034 |
| 2034 WebInspector.StylesSidebarPane.CSSPropertyPrompt.prototype.__proto__ = WebInspec
tor.TextPrompt.prototype; | 2035 WebInspector.StylesSidebarPane.CSSPropertyPrompt.prototype.__proto__ = WebInspec
tor.TextPrompt.prototype; |
| OLD | NEW |