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 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 var usedProperties = {}; | 572 var usedProperties = {}; |
573 this._markUsedProperties(styles, usedProperties); | 573 this._markUsedProperties(styles, usedProperties); |
574 for (var property in usedProperties) | 574 for (var property in usedProperties) |
575 this._animationProperties[property] = player.name(); | 575 this._animationProperties[property] = player.name(); |
576 } | 576 } |
577 } | 577 } |
578 | 578 |
579 if (this._computedStylePane.isShowing()) | 579 if (this._computedStylePane.isShowing()) |
580 this._target.cssModel.getComputedStyleAsync(node.id, computedCallbac
k); | 580 this._target.cssModel.getComputedStyleAsync(node.id, computedCallbac
k); |
581 if (Runtime.experiments.isEnabled("animationInspection")) | 581 if (Runtime.experiments.isEnabled("animationInspection")) |
582 this._target.animationModel.getAnimationPlayers(node.id, animationPl
ayersCallback.bind(this)); | 582 this._target.animationModel.getAnimationPlayers(node.id, false, anim
ationPlayersCallback.bind(this)); |
583 this._target.cssModel.getInlineStylesAsync(node.id, inlineCallback); | 583 this._target.cssModel.getInlineStylesAsync(node.id, inlineCallback); |
584 this._target.cssModel.getMatchedStylesAsync(node.id, false, false, style
sCallback.bind(this)); | 584 this._target.cssModel.getMatchedStylesAsync(node.id, false, false, style
sCallback.bind(this)); |
585 }, | 585 }, |
586 | 586 |
587 /** | 587 /** |
588 * @param {function()=} userCallback | 588 * @param {function()=} userCallback |
589 */ | 589 */ |
590 _validateNode: function(userCallback) | 590 _validateNode: function(userCallback) |
591 { | 591 { |
592 if (!this._node) { | 592 if (!this._node) { |
(...skipping 3075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3668 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase(
))) { | 3668 if (userEnteredText && (userEnteredText === userEnteredText.toUpperCase(
))) { |
3669 for (var i = 0; i < results.length; ++i) | 3669 for (var i = 0; i < results.length; ++i) |
3670 results[i] = results[i].toUpperCase(); | 3670 results[i] = results[i].toUpperCase(); |
3671 } | 3671 } |
3672 var selectedIndex = this._cssCompletions.mostUsedOf(results); | 3672 var selectedIndex = this._cssCompletions.mostUsedOf(results); |
3673 completionsReadyCallback(results, selectedIndex); | 3673 completionsReadyCallback(results, selectedIndex); |
3674 }, | 3674 }, |
3675 | 3675 |
3676 __proto__: WebInspector.TextPrompt.prototype | 3676 __proto__: WebInspector.TextPrompt.prototype |
3677 } | 3677 } |
OLD | NEW |