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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/UIUtils.js

Issue 1763193002: [DevTools] Fix more frontend compiler errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@caseq-patch
Patch Set: Created 4 years, 9 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) 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
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698