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 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2138 updateTitle: function() | 2138 updateTitle: function() |
2139 { | 2139 { |
2140 WebInspector.StylePropertyTreeElementBase.prototype.updateTitle.call(thi
s); | 2140 WebInspector.StylePropertyTreeElementBase.prototype.updateTitle.call(thi
s); |
2141 | 2141 |
2142 if (this.parsedOk && this.section() && this.parent.root) { | 2142 if (this.parsedOk && this.section() && this.parent.root) { |
2143 var enabledCheckboxElement = document.createElement("input"); | 2143 var enabledCheckboxElement = document.createElement("input"); |
2144 enabledCheckboxElement.className = "enabled-button"; | 2144 enabledCheckboxElement.className = "enabled-button"; |
2145 enabledCheckboxElement.type = "checkbox"; | 2145 enabledCheckboxElement.type = "checkbox"; |
2146 enabledCheckboxElement.checked = !this.disabled; | 2146 enabledCheckboxElement.checked = !this.disabled; |
2147 enabledCheckboxElement.addEventListener("click", this.toggleEnabled.
bind(this), false); | 2147 enabledCheckboxElement.addEventListener("click", this.toggleEnabled.
bind(this), false); |
2148 this.listItemElement.appendChild(enabledCheckboxElement); | 2148 this.listItemElement.insertBefore(enabledCheckboxElement, this.listI
temElement.firstChild); |
2149 } | 2149 } |
2150 }, | 2150 }, |
2151 | 2151 |
2152 _mouseClick: function(event) | 2152 _mouseClick: function(event) |
2153 { | 2153 { |
2154 if (!window.getSelection().isCollapsed) | 2154 if (!window.getSelection().isCollapsed) |
2155 return; | 2155 return; |
2156 | 2156 |
2157 event.consume(true); | 2157 event.consume(true); |
2158 | 2158 |
(...skipping 574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2733 if (!prefix && !force) | 2733 if (!prefix && !force) |
2734 return; | 2734 return; |
2735 | 2735 |
2736 var results = this._cssCompletions.startsWith(prefix); | 2736 var results = this._cssCompletions.startsWith(prefix); |
2737 var selectedIndex = this._cssCompletions.mostUsedOf(results); | 2737 var selectedIndex = this._cssCompletions.mostUsedOf(results); |
2738 completionsReadyCallback(results, selectedIndex); | 2738 completionsReadyCallback(results, selectedIndex); |
2739 }, | 2739 }, |
2740 | 2740 |
2741 __proto__: WebInspector.TextPrompt.prototype | 2741 __proto__: WebInspector.TextPrompt.prototype |
2742 } | 2742 } |
OLD | NEW |