| 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 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 978 curSection = curSection.previousSibling; | 978 curSection = curSection.previousSibling; |
| 979 } | 979 } |
| 980 | 980 |
| 981 return (curSection && curSection.editable) ? curSection : null; | 981 return (curSection && curSection.editable) ? curSection : null; |
| 982 }, | 982 }, |
| 983 | 983 |
| 984 update: function(full) | 984 update: function(full) |
| 985 { | 985 { |
| 986 if (this.styleRule.selectorText) | 986 if (this.styleRule.selectorText) |
| 987 this._selectorElement.textContent = this.styleRule.selectorText; | 987 this._selectorElement.textContent = this.styleRule.selectorText; |
| 988 this._markSelectorMatches(); |
| 988 if (full) { | 989 if (full) { |
| 989 this.propertiesTreeOutline.removeChildren(); | 990 this.propertiesTreeOutline.removeChildren(); |
| 990 this.populated = false; | 991 this.populated = false; |
| 991 } else { | 992 } else { |
| 992 var child = this.propertiesTreeOutline.children[0]; | 993 var child = this.propertiesTreeOutline.children[0]; |
| 993 while (child) { | 994 while (child) { |
| 994 child.overloaded = this.isPropertyOverloaded(child.name, child.i
sShorthand); | 995 child.overloaded = this.isPropertyOverloaded(child.name, child.i
sShorthand); |
| 995 child = child.traverseNextTreeElement(false, null, true); | 996 child = child.traverseNextTreeElement(false, null, true); |
| 996 } | 997 } |
| 997 } | 998 } |
| (...skipping 1578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2576 if (!prefix && !force) | 2577 if (!prefix && !force) |
| 2577 return; | 2578 return; |
| 2578 | 2579 |
| 2579 var results = this._cssCompletions.startsWith(prefix); | 2580 var results = this._cssCompletions.startsWith(prefix); |
| 2580 var selectedIndex = this._cssCompletions.mostUsedOf(results); | 2581 var selectedIndex = this._cssCompletions.mostUsedOf(results); |
| 2581 completionsReadyCallback(results, selectedIndex); | 2582 completionsReadyCallback(results, selectedIndex); |
| 2582 }, | 2583 }, |
| 2583 | 2584 |
| 2584 __proto__: WebInspector.TextPrompt.prototype | 2585 __proto__: WebInspector.TextPrompt.prototype |
| 2585 } | 2586 } |
| OLD | NEW |