| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 152             if (error || !computedPayload) | 152             if (error || !computedPayload) | 
| 153                 userCallback(null); | 153                 userCallback(null); | 
| 154             else | 154             else | 
| 155                 userCallback(WebInspector.CSSStyleDeclaration.parseComputedStyle
      Payload(computedPayload)); | 155                 userCallback(WebInspector.CSSStyleDeclaration.parseComputedStyle
      Payload(computedPayload)); | 
| 156         } | 156         } | 
| 157 | 157 | 
| 158         CSSAgent.getComputedStyleForNode(nodeId, callback.bind(null, userCallbac
      k)); | 158         CSSAgent.getComputedStyleForNode(nodeId, callback.bind(null, userCallbac
      k)); | 
| 159     }, | 159     }, | 
| 160 | 160 | 
| 161     /** | 161     /** | 
|  | 162      * @param {number} nodeId | 
|  | 163      * @param {function(?String, ?Array.<CSSAgent.PlatformFontUsage>)} callback | 
|  | 164      */ | 
|  | 165     getPlatformFontsForNode: function(nodeId, callback) | 
|  | 166     { | 
|  | 167         function platformFontsCallback(error, cssFamilyName, fonts) | 
|  | 168         { | 
|  | 169             if (error) | 
|  | 170                 callback(null, null); | 
|  | 171             else | 
|  | 172                 callback(cssFamilyName, fonts); | 
|  | 173         } | 
|  | 174         CSSAgent.getPlatformFontsForNode(nodeId, platformFontsCallback); | 
|  | 175     }, | 
|  | 176 | 
|  | 177     /** | 
| 162      * @param {DOMAgent.NodeId} nodeId | 178      * @param {DOMAgent.NodeId} nodeId | 
| 163      * @param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSSStyl
      eDeclaration)} userCallback | 179      * @param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSSStyl
      eDeclaration)} userCallback | 
| 164      */ | 180      */ | 
| 165     getInlineStylesAsync: function(nodeId, userCallback) | 181     getInlineStylesAsync: function(nodeId, userCallback) | 
| 166     { | 182     { | 
| 167         /** | 183         /** | 
| 168          * @param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSS
      StyleDeclaration)} userCallback | 184          * @param {function(?WebInspector.CSSStyleDeclaration, ?WebInspector.CSS
      StyleDeclaration)} userCallback | 
| 169          * @param {?Protocol.Error} error | 185          * @param {?Protocol.Error} error | 
| 170          * @param {?CSSAgent.CSSStyle=} inlinePayload | 186          * @param {?CSSAgent.CSSStyle=} inlinePayload | 
| 171          * @param {?CSSAgent.CSSStyle=} attributesStylePayload | 187          * @param {?CSSAgent.CSSStyle=} attributesStylePayload | 
| (...skipping 1517 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1689 | 1705 | 
| 1690         if (!namedFlow) | 1706         if (!namedFlow) | 
| 1691             return null; | 1707             return null; | 
| 1692         return namedFlow; | 1708         return namedFlow; | 
| 1693     } | 1709     } | 
| 1694 } | 1710 } | 
| 1695 /** | 1711 /** | 
| 1696  * @type {WebInspector.CSSStyleModel} | 1712  * @type {WebInspector.CSSStyleModel} | 
| 1697  */ | 1713  */ | 
| 1698 WebInspector.cssModel = null; | 1714 WebInspector.cssModel = null; | 
| OLD | NEW | 
|---|