Index: LayoutTests/inspector/profiler/heap-snapshot-test.js |
diff --git a/LayoutTests/inspector/profiler/heap-snapshot-test.js b/LayoutTests/inspector/profiler/heap-snapshot-test.js |
index 99ed6d5fe55ebd3b516d993d90cf763efb47fd5e..cc71650592bea633b3b93be4bad484dc5417f75e 100644 |
--- a/LayoutTests/inspector/profiler/heap-snapshot-test.js |
+++ b/LayoutTests/inspector/profiler/heap-snapshot-test.js |
@@ -577,12 +577,13 @@ InspectorTest.columnContents = function(column, row) |
{ |
// Make sure invisible nodes are removed from the view port. |
this._currentGrid().updateVisibleNodes(); |
+ var columnOrdinal = InspectorTest.viewColumns().indexOf(column); |
var result = []; |
var parent = row || this._currentGrid().rootNode(); |
for (var node = parent.children[0]; node; node = node.traverseNextNode(true, parent, true)) { |
if (!node.selectable) |
continue; |
- var content = node.element.children[column.ordinal]; |
+ var content = node.element.children[columnOrdinal]; |
// Do not inlcude percents |
if (content.firstElementChild) |
content = content.firstElementChild; |