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

Unified Diff: third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js

Issue 2879833002: Merge "DevTools: Fix a regression that double-clicking an item in the Network tab doesn't open the … (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js b/third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js
index df6f3304bf68509e202b69e792e52a5c46fc0a2b..dc131ab5c057f45dff81db4829e920901de7229c 100644
--- a/third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/data_grid/ViewportDataGrid.js
@@ -194,7 +194,8 @@ DataGrid.ViewportDataGrid = class extends DataGrid.DataGrid {
var element = node.element();
node.willAttach();
node.setStriped((offset + i) % 2 === 0);
- tBody.insertBefore(element, previousElement.nextSibling);
+ if (element !== previousElement.nextSibling)
+ tBody.insertBefore(element, previousElement.nextSibling);
node.revealed = true;
previousElement = element;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698