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.
let fragment = document.createDocumentFragment();
function td(tr, content, className) {
let td = document.createElement("td");
let node = document.createElement("td");
if (typeof content == "object") {
td.appendChild(content);
node.appendChild(content);
} else {
td.innerHTML = content;
node.innerHTML = content;
}
td.className = className
tr.appendChild(td);
return td
node.className = className
tr.appendChild(node);
return node
}
let max = Math.min(1000, entries.length)
for (let i = 0; i < max; 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.
let omitted = entries.length - max;
if (omitted > 0) {
let tr = document.createElement("tr");
let td = td(tr, 'Omitted ' + omitted + " entries.");
td.colSpan = 4;
let tdNode = td(tr, 'Omitted ' + omitted + " entries.");
tdNode.colSpan = 4;
fragment.appendChild(tr);
}
parent.appendChild(fragment);
......
......@@ -12,7 +12,7 @@ function processArguments(args) {
}
function initSourceMapSupport() {
// Pull dev tools source maps into our name space.
// Pull dev tools source maps into our name space.
SourceMap = WebInspector.SourceMap;
// 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