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

Side by Side Diff: Source/devtools/front_end/timeline/TimelineUIUtils.js

Issue 1164763004: DevTools: render category filters in a way that they don't clash. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: for landing Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * Copyright (C) 2012 Intel Inc. All rights reserved. 3 * Copyright (C) 2012 Intel Inc. All rights reserved.
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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * 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 1367 matching lines...) Expand 10 before | Expand all | Expand 10 after
1378 return WebInspector.TimelineUIUtils.createFillStyle(context, width, height, category.fillColorStop0, category.fillColorStop1, category.borderColor); 1378 return WebInspector.TimelineUIUtils.createFillStyle(context, width, height, category.fillColorStop0, category.fillColorStop1, category.borderColor);
1379 } 1379 }
1380 1380
1381 /** 1381 /**
1382 * @param {!WebInspector.TimelineCategory} category 1382 * @param {!WebInspector.TimelineCategory} category
1383 * @return {string} 1383 * @return {string}
1384 */ 1384 */
1385 WebInspector.TimelineUIUtils.createStyleRuleForCategory = function(category) 1385 WebInspector.TimelineUIUtils.createStyleRuleForCategory = function(category)
1386 { 1386 {
1387 var selector = ".timeline-category-" + category.name + " .timeline-graph-bar , " + 1387 var selector = ".timeline-category-" + category.name + " .timeline-graph-bar , " +
1388 ".panel.timeline .timeline-filters-header .filter-checkbox-filter.filter -checkbox-filter-" + category.name + " .checkbox-filter-checkbox, " +
1389 ".timeline-details-view .timeline-" + category.name + ", " + 1388 ".timeline-details-view .timeline-" + category.name + ", " +
1390 ".timeline-category-" + category.name + " .timeline-tree-icon"; 1389 ".timeline-category-" + category.name + " .timeline-tree-icon";
1391 1390
1392 return selector + " { background-image: linear-gradient(" + 1391 return selector + " { background-image: linear-gradient(" +
1393 category.fillColorStop0 + ", " + category.fillColorStop1 + " 25%, " + cat egory.fillColorStop1 + " 25%, " + category.fillColorStop1 + ");" + 1392 category.fillColorStop0 + ", " + category.fillColorStop1 + " 25%, " + cat egory.fillColorStop1 + " 25%, " + category.fillColorStop1 + ");" +
1394 " border-color: " + category.borderColor + 1393 " border-color: " + category.borderColor +
1395 "}"; 1394 "}";
1396 } 1395 }
1397 1396
1398 /** 1397 /**
(...skipping 492 matching lines...) Expand 10 before | Expand all | Expand 10 after
1891 return; 1890 return;
1892 1891
1893 var stackTraceElement = parentElement.createChild("div", "timeline-detai ls-view-row-value timeline-details-view-row-stack-trace monospace"); 1892 var stackTraceElement = parentElement.createChild("div", "timeline-detai ls-view-row-value timeline-details-view-row-stack-trace monospace");
1894 1893
1895 var callFrameElem = WebInspector.DOMPresentationUtils.buildStackTracePre viewContents(this._target, this._linkifier, stackTrace); 1894 var callFrameElem = WebInspector.DOMPresentationUtils.buildStackTracePre viewContents(this._target, this._linkifier, stackTrace);
1896 1895
1897 stackTraceElement.appendChild(callFrameElem); 1896 stackTraceElement.appendChild(callFrameElem);
1898 } 1897 }
1899 1898
1900 } 1899 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/timeline/TimelinePanel.js ('k') | Source/devtools/front_end/timeline/timelinePanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698