Commit e65d5409 authored by Camillo Bruni's avatar Camillo Bruni Committed by Commit Bot

[tools] Fix IC-Explorer drilldown and format file

Change-Id: Ic3e6db16678f513d8bb8eaea2695ae78e383b448
Reviewed-on: https://chromium-review.googlesource.com/736034
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: 's avatarPeter Marshall <petermarshall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#49028}
parent 04d2a0e9
...@@ -255,16 +255,17 @@ code is governed by a BSD-style license that can be found in the LICENSE file. ...@@ -255,16 +255,17 @@ code is governed by a BSD-style license that can be found in the LICENSE file.
let fragment = document.createDocumentFragment(); let fragment = document.createDocumentFragment();
function td(tr, content, className) { function td(tr, content, className) {
let td = document.createElement("td"); let node = document.createElement("td");
if (typeof content == "object") { if (typeof content == "object") {
td.appendChild(content); node.appendChild(content);
} else { } else {
td.innerHTML = content; node.innerHTML = content;
} }
td.className = className node.className = className
tr.appendChild(td); tr.appendChild(node);
return td return node
} }
let max = Math.min(1000, entries.length) let max = Math.min(1000, entries.length)
for (let i = 0; i < max; i++) { for (let i = 0; i < max; i++) {
let entry = entries[i]; let entry = entries[i];
...@@ -279,8 +280,8 @@ code is governed by a BSD-style license that can be found in the LICENSE file. ...@@ -279,8 +280,8 @@ code is governed by a BSD-style license that can be found in the LICENSE file.
let omitted = entries.length - max; let omitted = entries.length - max;
if (omitted > 0) { if (omitted > 0) {
let tr = document.createElement("tr"); let tr = document.createElement("tr");
let td = td(tr, 'Omitted ' + omitted + " entries."); let tdNode = td(tr, 'Omitted ' + omitted + " entries.");
td.colSpan = 4; tdNode.colSpan = 4;
fragment.appendChild(tr); fragment.appendChild(tr);
} }
parent.appendChild(fragment); parent.appendChild(fragment);
......
...@@ -12,7 +12,7 @@ function processArguments(args) { ...@@ -12,7 +12,7 @@ function processArguments(args) {
} }
function initSourceMapSupport() { function initSourceMapSupport() {
// Pull dev tools source maps into our name space. // Pull dev tools source maps into our name space.
SourceMap = WebInspector.SourceMap; SourceMap = WebInspector.SourceMap;
// Overwrite the load function to load scripts synchronously. // Overwrite the load function to load scripts synchronously.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment