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

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/LayerTreeOutline.js

Issue 1463143005: DevTools: avoid layout thrashing on Layers panel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: extracted reveal() change 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/timeline/LayerViewHost.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/timeline/LayerTreeOutline.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/LayerTreeOutline.js b/third_party/WebKit/Source/devtools/front_end/timeline/LayerTreeOutline.js
index 50b6536fa098976baf3f5a4b3eafa924df48aedf..25590bdcad27ffca65b22b889002268b3d937a96 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/LayerTreeOutline.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/LayerTreeOutline.js
@@ -127,7 +127,7 @@ WebInspector.LayerTreeOutline.prototype = {
// Skip till nearest visible ancestor.
while (parentLayer && parentLayer !== root && !parentLayer.drawsContent() && !showInternalLayers)
parentLayer = parentLayer.parent();
- var parent = layer === root ? this._treeOutline : parentLayer[WebInspector.LayerTreeElement._symbol];
+ var parent = layer === root ? this._treeOutline.rootElement() : parentLayer[WebInspector.LayerTreeElement._symbol];
if (!parent) {
console.assert(false, "Parent is not in the tree");
return;
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/timeline/LayerViewHost.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698