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

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

Issue 471873002: DevTools: CSS cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 } 347 }
348 348
349 /** 349 /**
350 * @param {!WebInspector.TimelineCategory} category 350 * @param {!WebInspector.TimelineCategory} category
351 * @return {string} 351 * @return {string}
352 */ 352 */
353 WebInspector.TimelineUIUtils.createStyleRuleForCategory = function(category) 353 WebInspector.TimelineUIUtils.createStyleRuleForCategory = function(category)
354 { 354 {
355 var selector = ".timeline-category-" + category.name + " .timeline-graph-bar , " + 355 var selector = ".timeline-category-" + category.name + " .timeline-graph-bar , " +
356 ".panel.timeline .timeline-filters-header .filter-checkbox-filter.filter -checkbox-filter-" + category.name + " .checkbox-filter-checkbox, " + 356 ".panel.timeline .timeline-filters-header .filter-checkbox-filter.filter -checkbox-filter-" + category.name + " .checkbox-filter-checkbox, " +
357 ".popover .timeline-" + category.name + ", " +
358 ".timeline-details-view .timeline-" + category.name + ", " + 357 ".timeline-details-view .timeline-" + category.name + ", " +
359 ".timeline-category-" + category.name + " .timeline-tree-icon" 358 ".timeline-category-" + category.name + " .timeline-tree-icon"
360 359
361 return selector + " { background-image: linear-gradient(" + 360 return selector + " { background-image: linear-gradient(" +
362 category.fillColorStop0 + ", " + category.fillColorStop1 + " 25%, " + cat egory.fillColorStop1 + " 25%, " + category.fillColorStop1 + ");" + 361 category.fillColorStop0 + ", " + category.fillColorStop1 + " 25%, " + cat egory.fillColorStop1 + " 25%, " + category.fillColorStop1 + ");" +
363 " border-color: " + category.borderColor + 362 " border-color: " + category.borderColor +
364 "}"; 363 "}";
365 } 364 }
366 365
367 /** 366 /**
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 for (var i = 0; i < stackTrace.length; ++i) { 567 for (var i = 0; i < stackTrace.length; ++i) {
569 var stackFrame = stackTrace[i]; 568 var stackFrame = stackTrace[i];
570 var row = stackTraceElement.createChild("div"); 569 var row = stackTraceElement.createChild("div");
571 row.createTextChild(stackFrame.functionName || WebInspector.UIString ("(anonymous function)")); 570 row.createTextChild(stackFrame.functionName || WebInspector.UIString ("(anonymous function)"));
572 row.createTextChild(" @ "); 571 row.createTextChild(" @ ");
573 var urlElement = this._linkifier.linkifyScriptLocation(this._target, stackFrame.scriptId, stackFrame.url, stackFrame.lineNumber - 1, stackFrame.colu mnNumber - 1); 572 var urlElement = this._linkifier.linkifyScriptLocation(this._target, stackFrame.scriptId, stackFrame.url, stackFrame.lineNumber - 1, stackFrame.colu mnNumber - 1);
574 row.appendChild(urlElement); 573 row.appendChild(urlElement);
575 } 574 }
576 } 575 }
577 } 576 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/inspectorStyle.css ('k') | Source/devtools/front_end/timelinePanel.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698