| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 this.dispatchEventToListeners(WebInspector.StylesSidebarPane.Events.Sele
ctorEditingEnded); | 259 this.dispatchEventToListeners(WebInspector.StylesSidebarPane.Events.Sele
ctorEditingEnded); |
| 260 }, | 260 }, |
| 261 | 261 |
| 262 /** | 262 /** |
| 263 * @param {!WebInspector.CSSRule} editedRule | 263 * @param {!WebInspector.CSSRule} editedRule |
| 264 * @param {!WebInspector.TextRange} oldRange | 264 * @param {!WebInspector.TextRange} oldRange |
| 265 * @param {!WebInspector.TextRange} newRange | 265 * @param {!WebInspector.TextRange} newRange |
| 266 */ | 266 */ |
| 267 _styleSheetRuleEdited: function(editedRule, oldRange, newRange) | 267 _styleSheetRuleEdited: function(editedRule, oldRange, newRange) |
| 268 { | 268 { |
| 269 var styleRuleSections = this.sections[0]; | 269 for (var pseudoId in this.sections) { |
| 270 for (var i = 1; i < styleRuleSections.length; ++i) | 270 var styleRuleSections = this.sections[pseudoId]; |
| 271 styleRuleSections[i]._styleSheetRuleEdited(editedRule, oldRange, new
Range); | 271 for (var i = 0; i < styleRuleSections.length; ++i) { |
| 272 var section = styleRuleSections[i]; |
| 273 if (section.computedStyle) |
| 274 continue; |
| 275 section._styleSheetRuleEdited(editedRule, oldRange, newRange); |
| 276 } |
| 277 } |
| 272 }, | 278 }, |
| 273 | 279 |
| 274 /** | 280 /** |
| 275 * @param {!Event} event | 281 * @param {!Event} event |
| 276 */ | 282 */ |
| 277 _contextMenuEventFired: function(event) | 283 _contextMenuEventFired: function(event) |
| 278 { | 284 { |
| 279 // We start editing upon click -> default navigation to resources panel
is not available | 285 // We start editing upon click -> default navigation to resources panel
is not available |
| 280 // Hence we add a soft context menu for hrefs. | 286 // Hence we add a soft context menu for hrefs. |
| 281 var contextMenu = new WebInspector.ContextMenu(event); | 287 var contextMenu = new WebInspector.ContextMenu(event); |
| (...skipping 3375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3657 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase(
))) { | 3663 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase(
))) { |
| 3658 for (var i = 0; i < results.length; ++i) | 3664 for (var i = 0; i < results.length; ++i) |
| 3659 results[i] = results[i].toUpperCase(); | 3665 results[i] = results[i].toUpperCase(); |
| 3660 } | 3666 } |
| 3661 var selectedIndex = this._cssCompletions.mostUsedOf(results); | 3667 var selectedIndex = this._cssCompletions.mostUsedOf(results); |
| 3662 completionsReadyCallback(results, selectedIndex); | 3668 completionsReadyCallback(results, selectedIndex); |
| 3663 }, | 3669 }, |
| 3664 | 3670 |
| 3665 __proto__: WebInspector.TextPrompt.prototype | 3671 __proto__: WebInspector.TextPrompt.prototype |
| 3666 } | 3672 } |
| OLD | NEW |