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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/NavigatorView.js

Issue 1461283004: DevTools: defer reveal in TreeOutline using rAF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 */ 683 */
684 updateIconClasses: function(iconClasses) 684 updateIconClasses: function(iconClasses)
685 { 685 {
686 for (var i = 0; i < this._iconClasses.length; ++i) 686 for (var i = 0; i < this._iconClasses.length; ++i)
687 this.listItemElement.classList.remove(this._iconClasses[i]); 687 this.listItemElement.classList.remove(this._iconClasses[i]);
688 this._iconClasses = iconClasses; 688 this._iconClasses = iconClasses;
689 for (var i = 0; i < this._iconClasses.length; ++i) 689 for (var i = 0; i < this._iconClasses.length; ++i)
690 this.listItemElement.classList.add(this._iconClasses[i]); 690 this.listItemElement.classList.add(this._iconClasses[i]);
691 }, 691 },
692 692
693 onreveal: function()
694 {
695 if (this.listItemElement)
696 this.listItemElement.scrollIntoViewIfNeeded(true);
697 },
698
699 /** 693 /**
700 * @return {string} 694 * @return {string}
701 */ 695 */
702 get titleText() 696 get titleText()
703 { 697 {
704 return this._titleText; 698 return this._titleText;
705 }, 699 },
706 700
707 set titleText(titleText) 701 set titleText(titleText)
708 { 702 {
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
1419 1413
1420 willRemoveChild: function(node) 1414 willRemoveChild: function(node)
1421 { 1415 {
1422 if (node._isMerged || !this.isPopulated()) 1416 if (node._isMerged || !this.isPopulated())
1423 return; 1417 return;
1424 this._treeElement.removeChild(node._treeElement); 1418 this._treeElement.removeChild(node._treeElement);
1425 }, 1419 },
1426 1420
1427 __proto__: WebInspector.NavigatorTreeNode.prototype 1421 __proto__: WebInspector.NavigatorTreeNode.prototype
1428 } 1422 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698