| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 { | 164 { |
| 165 if (error) | 165 if (error) |
| 166 callback(null, null); | 166 callback(null, null); |
| 167 else | 167 else |
| 168 callback(cssFamilyName, fonts); | 168 callback(cssFamilyName, fonts); |
| 169 } | 169 } |
| 170 CSSAgent.getPlatformFontsForNode(nodeId, platformFontsCallback); | 170 CSSAgent.getPlatformFontsForNode(nodeId, platformFontsCallback); |
| 171 }, | 171 }, |
| 172 | 172 |
| 173 /** | 173 /** |
| 174 * @return {!Array.<!WebInspector.CSSStyleSheetHeader>} |
| 175 */ |
| 176 allStyleSheets: function() |
| 177 { |
| 178 return Object.values(this._styleSheetIdToHeader); |
| 179 }, |
| 180 |
| 181 /** |
| 174 * @param {!DOMAgent.NodeId} nodeId | 182 * @param {!DOMAgent.NodeId} nodeId |
| 175 * @param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSSStyl
eDeclaration)} userCallback | 183 * @param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSSStyl
eDeclaration)} userCallback |
| 176 */ | 184 */ |
| 177 getInlineStylesAsync: function(nodeId, userCallback) | 185 getInlineStylesAsync: function(nodeId, userCallback) |
| 178 { | 186 { |
| 179 /** | 187 /** |
| 180 * @param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSS
StyleDeclaration)} userCallback | 188 * @param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSS
StyleDeclaration)} userCallback |
| 181 * @param {?Protocol.Error} error | 189 * @param {?Protocol.Error} error |
| 182 * @param {?CSSAgent.CSSStyle=} inlinePayload | 190 * @param {?CSSAgent.CSSStyle=} inlinePayload |
| 183 * @param {?CSSAgent.CSSStyle=} attributesStylePayload | 191 * @param {?CSSAgent.CSSStyle=} attributesStylePayload |
| (...skipping 1645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1829 for (var i = 0; i < callbacks.length; ++i) | 1837 for (var i = 0; i < callbacks.length; ++i) |
| 1830 callbacks[i](computedStyle); | 1838 callbacks[i](computedStyle); |
| 1831 } | 1839 } |
| 1832 } | 1840 } |
| 1833 } | 1841 } |
| 1834 | 1842 |
| 1835 /** | 1843 /** |
| 1836 * @type {!WebInspector.CSSStyleModel} | 1844 * @type {!WebInspector.CSSStyleModel} |
| 1837 */ | 1845 */ |
| 1838 WebInspector.cssModel; | 1846 WebInspector.cssModel; |
| OLD | NEW |