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

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

Issue 2514123002: [Devtools] Moved NetworkWaterfallColumn to use NetworkLogEntry (Closed)
Patch Set: changes Created 4 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 | « third_party/WebKit/Source/devtools/front_end/network/NetworkWaterfallColumn.js ('k') | 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/ui_lazy/ViewportDataGrid.js
diff --git a/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js b/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
index 8758b4eef83cda6bffcc310cd221d742d53400c4..b63999f89bea63d8c0e0e3cda66fb1f44df69cf4 100644
--- a/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
+++ b/third_party/WebKit/Source/devtools/front_end/ui_lazy/ViewportDataGrid.js
@@ -122,7 +122,7 @@ UI.ViewportDataGrid = class extends UI.DataGrid {
/**
* @return {!Array.<!UI.ViewportDataGridNode>}
*/
- _flatNodesList() {
+ flatNodesList() {
if (this._flatNodes)
return this._flatNodes;
var flatNodes = [];
@@ -153,7 +153,7 @@ UI.ViewportDataGrid = class extends UI.DataGrid {
* @return {{topPadding: number, bottomPadding: number, contentHeight: number, visibleNodes: !Array.<!UI.ViewportDataGridNode>, offset: number}}
*/
_calculateVisibleNodes(clientHeight, scrollTop) {
- var nodes = this._flatNodesList();
+ var nodes = this.flatNodesList();
if (this._inline)
return {topPadding: 0, bottomPadding: 0, contentHeight: 0, visibleNodes: nodes, offset: 0};
@@ -187,7 +187,7 @@ UI.ViewportDataGrid = class extends UI.DataGrid {
* @return {number}
*/
_contentHeight() {
- var nodes = this._flatNodesList();
+ var nodes = this.flatNodesList();
var result = 0;
for (var i = 0, size = nodes.length; i < size; ++i)
result += nodes[i].nodeSelfHeight();
@@ -263,7 +263,7 @@ UI.ViewportDataGrid = class extends UI.DataGrid {
* @param {!UI.ViewportDataGridNode} node
*/
_revealViewportNode(node) {
- var nodes = this._flatNodesList();
+ var nodes = this.flatNodesList();
var index = nodes.indexOf(node);
if (index === -1)
return;
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/network/NetworkWaterfallColumn.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698