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

Unified Diff: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js

Issue 2716983002: [Devtools] Moved DataGridNode's .parent property to proper getter/setter (Closed)
Patch Set: [Devtools] Moved DataGridNode's .parent property to proper getter/setter Created 3 years, 10 months 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
Index: third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js
index e83ecc02250e6abeac606dcb77585a5dadacfa76..e3dbb40482242caab57f129a3c400c88c20d0538 100644
--- a/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js
+++ b/third_party/WebKit/Source/devtools/front_end/network/NetworkLogView.js
@@ -813,12 +813,12 @@ Network.NetworkLogView = class extends UI.VBox {
node[Network.NetworkLogView._isFilteredOutSymbol] = isFilteredOut;
var newParent = this._parentNodeForInsert(node);
- var removeFromParent = node.parent && (isFilteredOut || node.parent !== newParent);
+ var removeFromParent = node.parent() && (isFilteredOut || node.parent() !== newParent);
if (removeFromParent) {
- var parent = node.parent;
+ var parent = node.parent();
parent.removeChild(node);
while (parent && !parent.hasChildren() && parent.dataGrid && parent.dataGrid.rootNode() !== parent) {
- var grandparent = parent.parent;
+ var grandparent = parent.parent();
grandparent.removeChild(parent);
parent = grandparent;
}

Powered by Google App Engine
This is Rietveld 408576698