| 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 931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 942 } | 942 } |
| 943 | 943 |
| 944 /** | 944 /** |
| 945 * @param {string} state | 945 * @param {string} state |
| 946 * @return {!Element} | 946 * @return {!Element} |
| 947 * @this {WebInspector.StylesSidebarPane} | 947 * @this {WebInspector.StylesSidebarPane} |
| 948 */ | 948 */ |
| 949 function createCheckbox(state) | 949 function createCheckbox(state) |
| 950 { | 950 { |
| 951 var td = createElement("td"); | 951 var td = createElement("td"); |
| 952 var label = createElement("label"); | 952 var label = createCheckboxLabel(":" + state); |
| 953 var input = createElement("input"); | 953 var input = label.checkboxElement; |
| 954 input.type = "checkbox"; | |
| 955 input.state = state; | 954 input.state = state; |
| 956 input.addEventListener("click", clickListener.bind(this), false); | 955 input.addEventListener("click", clickListener.bind(this), false); |
| 957 inputs.push(input); | 956 inputs.push(input); |
| 958 label.appendChild(input); | |
| 959 label.createTextChild(":" + state); | |
| 960 td.appendChild(label); | 957 td.appendChild(label); |
| 961 return td; | 958 return td; |
| 962 } | 959 } |
| 963 | 960 |
| 964 var tr = table.createChild("tr"); | 961 var tr = table.createChild("tr"); |
| 965 tr.appendChild(createCheckbox.call(this, "active")); | 962 tr.appendChild(createCheckbox.call(this, "active")); |
| 966 tr.appendChild(createCheckbox.call(this, "hover")); | 963 tr.appendChild(createCheckbox.call(this, "hover")); |
| 967 | 964 |
| 968 tr = table.createChild("tr"); | 965 tr = table.createChild("tr"); |
| 969 tr.appendChild(createCheckbox.call(this, "focus")); | 966 tr.appendChild(createCheckbox.call(this, "focus")); |
| (...skipping 2726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3696 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase(
))) { | 3693 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase(
))) { |
| 3697 for (var i = 0; i < results.length; ++i) | 3694 for (var i = 0; i < results.length; ++i) |
| 3698 results[i] = results[i].toUpperCase(); | 3695 results[i] = results[i].toUpperCase(); |
| 3699 } | 3696 } |
| 3700 var selectedIndex = this._cssCompletions.mostUsedOf(results); | 3697 var selectedIndex = this._cssCompletions.mostUsedOf(results); |
| 3701 completionsReadyCallback(results, selectedIndex); | 3698 completionsReadyCallback(results, selectedIndex); |
| 3702 }, | 3699 }, |
| 3703 | 3700 |
| 3704 __proto__: WebInspector.TextPrompt.prototype | 3701 __proto__: WebInspector.TextPrompt.prototype |
| 3705 } | 3702 } |
| OLD | NEW |