Chromium Code Reviews| 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 540 this.sections = {}; | 540 this.sections = {}; |
| 541 if (userCallback) | 541 if (userCallback) |
| 542 userCallback(); | 542 userCallback(); |
| 543 return null; | 543 return null; |
| 544 } | 544 } |
| 545 return this._node; | 545 return this._node; |
| 546 }, | 546 }, |
| 547 | 547 |
| 548 _styleSheetOrMediaQueryResultChanged: function() | 548 _styleSheetOrMediaQueryResultChanged: function() |
| 549 { | 549 { |
| 550 if (this._userOperation || this._isEditingStyle) | 550 if (this._userOperation || this._isEditingStyle || !this.isShowing()) |
|
vsevik
2014/10/21 15:32:32
Shouldn't we schedule an update when shown?
| |
| 551 return; | 551 return; |
| 552 | 552 |
| 553 this._rebuildUpdate(); | 553 this._rebuildUpdate(); |
| 554 }, | 554 }, |
| 555 | 555 |
| 556 _frameResized: function() | 556 _frameResized: function() |
| 557 { | 557 { |
| 558 /** | 558 /** |
| 559 * @this {WebInspector.StylesSidebarPane} | 559 * @this {WebInspector.StylesSidebarPane} |
| 560 */ | 560 */ |
| (...skipping 3040 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3601 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase( ))) { | 3601 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase( ))) { |
| 3602 for (var i = 0; i < results.length; ++i) | 3602 for (var i = 0; i < results.length; ++i) |
| 3603 results[i] = results[i].toUpperCase(); | 3603 results[i] = results[i].toUpperCase(); |
| 3604 } | 3604 } |
| 3605 var selectedIndex = this._cssCompletions.mostUsedOf(results); | 3605 var selectedIndex = this._cssCompletions.mostUsedOf(results); |
| 3606 completionsReadyCallback(results, selectedIndex); | 3606 completionsReadyCallback(results, selectedIndex); |
| 3607 }, | 3607 }, |
| 3608 | 3608 |
| 3609 __proto__: WebInspector.TextPrompt.prototype | 3609 __proto__: WebInspector.TextPrompt.prototype |
| 3610 } | 3610 } |
| OLD | NEW |