| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 5 * Copyright (C) 2009 Joseph Pecoraro | 5 * Copyright (C) 2009 Joseph Pecoraro |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * | 10 * |
| (...skipping 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1658 styleElement.textContent = text; | 1658 styleElement.textContent = text; |
| 1659 document.body.appendChild(styleElement); | 1659 document.body.appendChild(styleElement); |
| 1660 patch = this._patchForTheme(id, styleElement.sheet); | 1660 patch = this._patchForTheme(id, styleElement.sheet); |
| 1661 document.body.removeChild(styleElement); | 1661 document.body.removeChild(styleElement); |
| 1662 } | 1662 } |
| 1663 return patch; | 1663 return patch; |
| 1664 }, | 1664 }, |
| 1665 | 1665 |
| 1666 /** | 1666 /** |
| 1667 * @param {string} id | 1667 * @param {string} id |
| 1668 * @param {!CSSStyleSheet} styleSheet | 1668 * @param {!StyleSheet} styleSheet |
| 1669 * @return {string} | 1669 * @return {string} |
| 1670 */ | 1670 */ |
| 1671 _patchForTheme: function(id, styleSheet) | 1671 _patchForTheme: function(id, styleSheet) |
| 1672 { | 1672 { |
| 1673 var cached = this._cachedThemePatches.get(id); | 1673 var cached = this._cachedThemePatches.get(id); |
| 1674 if (cached) | 1674 if (cached) |
| 1675 return cached; | 1675 return cached; |
| 1676 | 1676 |
| 1677 try { | 1677 try { |
| 1678 var rules = styleSheet.cssRules; | 1678 var rules = styleSheet.cssRules; |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1819 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], | 1819 [NetworkAgent.ResourcePriority.High, WebInspector.UIString("High")], |
| 1820 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High
est")] | 1820 [NetworkAgent.ResourcePriority.VeryHigh, WebInspector.UIString("High
est")] |
| 1821 ]); | 1821 ]); |
| 1822 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; | 1822 WebInspector.uiLabelForPriority._priorityToUILabel = labelMap; |
| 1823 } | 1823 } |
| 1824 return labelMap.get(priority) || WebInspector.UIString("Unknown"); | 1824 return labelMap.get(priority) || WebInspector.UIString("Unknown"); |
| 1825 } | 1825 } |
| 1826 | 1826 |
| 1827 /** @type {!WebInspector.ThemeSupport} */ | 1827 /** @type {!WebInspector.ThemeSupport} */ |
| 1828 WebInspector.themeSupport; | 1828 WebInspector.themeSupport; |
| OLD | NEW |