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

Side by Side Diff: WebCore/inspector/front-end/ResourcesPanel.js

Issue 3442005: Merge 67629 - 2010-09-16 Pavel Feldman <pfeldman@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/517/
Patch Set: Created 10 years, 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org> 3 * Copyright (C) 2008, 2009 Anthony Ricaud <rik@webkit.org>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
850 var bar = document.createElement("span"); 850 var bar = document.createElement("span");
851 bar.className = "resource-timing-bar"; 851 bar.className = "resource-timing-bar";
852 bar.style.left = scale * rows[i].start + "px"; 852 bar.style.left = scale * rows[i].start + "px";
853 bar.style.right = scale * (total - rows[i].end) + "px"; 853 bar.style.right = scale * (total - rows[i].end) + "px";
854 bar.style.backgroundColor = rows[i].color; 854 bar.style.backgroundColor = rows[i].color;
855 bar.textContent = "\u200B"; // Important for 0-time items to have 0 width. 855 bar.textContent = "\u200B"; // Important for 0-time items to have 0 width.
856 row.appendChild(bar); 856 row.appendChild(bar);
857 857
858 var title = document.createElement("span"); 858 var title = document.createElement("span");
859 title.className = "resource-timing-bar-title"; 859 title.className = "resource-timing-bar-title";
860 if (i >= rows.length - 2) 860 if (total - rows[i].end < rows[i].start)
861 title.style.right = (scale * (total - rows[i].end) + 3) + "px"; 861 title.style.right = (scale * (total - rows[i].end) + 3) + "px";
862 else 862 else
863 title.style.left = (scale * rows[i].start + 3) + "px"; 863 title.style.left = (scale * rows[i].start + 3) + "px";
864 title.textContent = Number.millisToString(rows[i].end - rows[i].star t); 864 title.textContent = Number.millisToString(rows[i].end - rows[i].star t);
865 row.appendChild(title); 865 row.appendChild(title);
866 866
867 tr.appendChild(td); 867 tr.appendChild(td);
868 } 868 }
869 869
870 var popover = new WebInspector.Popover(tableElement); 870 var popover = new WebInspector.Popover(tableElement);
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
1494 this._labelRightElement.title = tooltip; 1494 this._labelRightElement.title = tooltip;
1495 this._barRightElement.title = tooltip; 1495 this._barRightElement.title = tooltip;
1496 }, 1496 },
1497 1497
1498 _cachedChanged: function() 1498 _cachedChanged: function()
1499 { 1499 {
1500 if (this.resource.cached) 1500 if (this.resource.cached)
1501 this._graphElement.addStyleClass("resource-cached"); 1501 this._graphElement.addStyleClass("resource-cached");
1502 } 1502 }
1503 } 1503 }
OLDNEW
« 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