| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 * @param {!Array.<!CSSAgent.RuleMatch>=} matchedPayload | 132 * @param {!Array.<!CSSAgent.RuleMatch>=} matchedPayload |
| 133 * @param {!Array.<!CSSAgent.PseudoElementMatches>=} pseudoPayload | 133 * @param {!Array.<!CSSAgent.PseudoElementMatches>=} pseudoPayload |
| 134 * @param {!Array.<!CSSAgent.InheritedStyleEntry>=} inheritedPayload | 134 * @param {!Array.<!CSSAgent.InheritedStyleEntry>=} inheritedPayload |
| 135 * @return {?WebInspector.CSSStyleModel.MatchedStyleResult} | 135 * @return {?WebInspector.CSSStyleModel.MatchedStyleResult} |
| 136 * @this {WebInspector.CSSStyleModel} | 136 * @this {WebInspector.CSSStyleModel} |
| 137 */ | 137 */ |
| 138 function callback(error, inlinePayload, attributesPayload, matchedPayloa
d, pseudoPayload, inheritedPayload) | 138 function callback(error, inlinePayload, attributesPayload, matchedPayloa
d, pseudoPayload, inheritedPayload) |
| 139 { | 139 { |
| 140 if (error) | 140 if (error) |
| 141 return null; | 141 return null; |
| 142 | |
| 143 return new WebInspector.CSSStyleModel.MatchedStyleResult(this, nodeI
d, inlinePayload, attributesPayload, matchedPayload, pseudoPayload, inheritedPay
load); | 142 return new WebInspector.CSSStyleModel.MatchedStyleResult(this, nodeI
d, inlinePayload, attributesPayload, matchedPayload, pseudoPayload, inheritedPay
load); |
| 144 } | 143 } |
| 145 | 144 |
| 146 return this._agent.getMatchedStylesForNode(nodeId, callback.bind(this)); | 145 return this._agent.getMatchedStylesForNode(nodeId, callback.bind(this)); |
| 147 }, | 146 }, |
| 148 | 147 |
| 149 /** | 148 /** |
| 150 * @param {!DOMAgent.NodeId} nodeId | 149 * @param {!DOMAgent.NodeId} nodeId |
| 151 * @return {!Promise.<?Map.<string, string>>} | 150 * @return {!Promise.<?Map.<string, string>>} |
| 152 */ | 151 */ |
| (...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2185 * @constructor | 2184 * @constructor |
| 2186 * @param {?WebInspector.CSSStyleDeclaration} inlineStyle | 2185 * @param {?WebInspector.CSSStyleDeclaration} inlineStyle |
| 2187 * @param {?WebInspector.CSSStyleDeclaration} attributesStyle | 2186 * @param {?WebInspector.CSSStyleDeclaration} attributesStyle |
| 2188 */ | 2187 */ |
| 2189 WebInspector.CSSStyleModel.InlineStyleResult = function(inlineStyle, attributesS
tyle) | 2188 WebInspector.CSSStyleModel.InlineStyleResult = function(inlineStyle, attributesS
tyle) |
| 2190 { | 2189 { |
| 2191 this.inlineStyle = inlineStyle; | 2190 this.inlineStyle = inlineStyle; |
| 2192 this.attributesStyle = attributesStyle; | 2191 this.attributesStyle = attributesStyle; |
| 2193 } | 2192 } |
| 2194 | 2193 |
| OLD | NEW |