Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(698)

Side by Side Diff: Source/devtools/front_end/elements/StylesSidebarPane.js

Issue 682423002: Devtools Animations: Show subtree animations for a given node (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review changes Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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.animationPlayers(node.id, false, animati onPlayersCallback.bind(this));
vsevik 2014/11/12 09:14:35 getAnimationPlayers, see below.
samli 2014/11/13 01:12:44 Done.
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698