| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1471 { | 1471 { |
| 1472 return WebInspector.TimelinePresentationModel.createFillStyle(context, width
, height, category.fillColorStop0, category.fillColorStop1, category.borderColor
); | 1472 return WebInspector.TimelinePresentationModel.createFillStyle(context, width
, height, category.fillColorStop0, category.fillColorStop1, category.borderColor
); |
| 1473 } | 1473 } |
| 1474 | 1474 |
| 1475 /** | 1475 /** |
| 1476 * @param {WebInspector.TimelineCategory} category | 1476 * @param {WebInspector.TimelineCategory} category |
| 1477 */ | 1477 */ |
| 1478 WebInspector.TimelinePresentationModel.createStyleRuleForCategory = function(cat
egory) | 1478 WebInspector.TimelinePresentationModel.createStyleRuleForCategory = function(cat
egory) |
| 1479 { | 1479 { |
| 1480 var selector = ".timeline-category-" + category.name + " .timeline-graph-bar
, " + | 1480 var selector = ".timeline-category-" + category.name + " .timeline-graph-bar
, " + |
| 1481 ".timeline-category-statusbar-item.timeline-category-" + category.name +
" .timeline-category-checkbox, " + | 1481 ".panel.timeline .timeline-filters-header .filter-checkbox-filter.filter
-checkbox-filter-" + category.name + " .checkbox-filter-checkbox, " + |
| 1482 ".popover .timeline-" + category.name + ", " + | 1482 ".popover .timeline-" + category.name + ", " + |
| 1483 ".timeline-category-" + category.name + " .timeline-tree-icon" | 1483 ".timeline-category-" + category.name + " .timeline-tree-icon" |
| 1484 | 1484 |
| 1485 return selector + " { background-image: -webkit-linear-gradient(" + | 1485 return selector + " { background-image: -webkit-linear-gradient(" + |
| 1486 category.fillColorStop0 + ", " + category.fillColorStop1 + " 25%, " + cat
egory.fillColorStop1 + " 25%, " + category.fillColorStop1 + ");" + | 1486 category.fillColorStop0 + ", " + category.fillColorStop1 + " 25%, " + cat
egory.fillColorStop1 + " 25%, " + category.fillColorStop1 + ");" + |
| 1487 " border-color: " + category.borderColor + | 1487 " border-color: " + category.borderColor + |
| 1488 "}"; | 1488 "}"; |
| 1489 } | 1489 } |
| 1490 | 1490 |
| 1491 | 1491 |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1587 }, | 1587 }, |
| 1588 | 1588 |
| 1589 set hidden(hidden) | 1589 set hidden(hidden) |
| 1590 { | 1590 { |
| 1591 this._hidden = hidden; | 1591 this._hidden = hidden; |
| 1592 this.dispatchEventToListeners(WebInspector.TimelineCategory.Events.Visib
ilityChanged, this); | 1592 this.dispatchEventToListeners(WebInspector.TimelineCategory.Events.Visib
ilityChanged, this); |
| 1593 }, | 1593 }, |
| 1594 | 1594 |
| 1595 __proto__: WebInspector.Object.prototype | 1595 __proto__: WebInspector.Object.prototype |
| 1596 } | 1596 } |
| OLD | NEW |