| 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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 /** | 989 /** |
| 990 * @param {number} nodeId | 990 * @param {number} nodeId |
| 991 * @param {string} name | 991 * @param {string} name |
| 992 * @param {string} value | 992 * @param {string} value |
| 993 */ | 993 */ |
| 994 setEffectivePropertyValueForNode: function(nodeId, name, value) | 994 setEffectivePropertyValueForNode: function(nodeId, name, value) |
| 995 { | 995 { |
| 996 this._agent.setEffectivePropertyValueForNode(nodeId, name, value); | 996 this._agent.setEffectivePropertyValueForNode(nodeId, name, value); |
| 997 }, | 997 }, |
| 998 | 998 |
| 999 /** |
| 1000 * @param {!WebInspector.DOMNode} node |
| 1001 * @return {!Promise.<?WebInspector.CSSMatchedStyles>} |
| 1002 */ |
| 1003 cachedMatchedCascadeForNode: function(node) |
| 1004 { |
| 1005 if (this._cachedMatchedCascadeNode !== node) |
| 1006 this.discardCachedMatchedCascade(); |
| 1007 this._cachedMatchedCascadeNode = node; |
| 1008 if (!this._cachedMatchedCascadePromise) |
| 1009 this._cachedMatchedCascadePromise = this.matchedStylesPromise(node.i
d); |
| 1010 return this._cachedMatchedCascadePromise; |
| 1011 }, |
| 1012 |
| 1013 discardCachedMatchedCascade: function() |
| 1014 { |
| 1015 delete this._cachedMatchedCascadeNode; |
| 1016 delete this._cachedMatchedCascadePromise; |
| 1017 }, |
| 1018 |
| 999 __proto__: WebInspector.SDKModel.prototype | 1019 __proto__: WebInspector.SDKModel.prototype |
| 1000 } | 1020 } |
| 1001 | 1021 |
| 1002 /** | 1022 /** |
| 1003 * @param {string} text | 1023 * @param {string} text |
| 1004 * @return {string} | 1024 * @return {string} |
| 1005 */ | 1025 */ |
| 1006 WebInspector.CSSModel.trimSourceURL = function(text) | 1026 WebInspector.CSSModel.trimSourceURL = function(text) |
| 1007 { | 1027 { |
| 1008 var sourceURLIndex = text.lastIndexOf("/*# sourceURL="); | 1028 var sourceURLIndex = text.lastIndexOf("/*# sourceURL="); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1190 /** | 1210 /** |
| 1191 * @constructor | 1211 * @constructor |
| 1192 * @param {?WebInspector.CSSStyleDeclaration} inlineStyle | 1212 * @param {?WebInspector.CSSStyleDeclaration} inlineStyle |
| 1193 * @param {?WebInspector.CSSStyleDeclaration} attributesStyle | 1213 * @param {?WebInspector.CSSStyleDeclaration} attributesStyle |
| 1194 */ | 1214 */ |
| 1195 WebInspector.CSSModel.InlineStyleResult = function(inlineStyle, attributesStyle) | 1215 WebInspector.CSSModel.InlineStyleResult = function(inlineStyle, attributesStyle) |
| 1196 { | 1216 { |
| 1197 this.inlineStyle = inlineStyle; | 1217 this.inlineStyle = inlineStyle; |
| 1198 this.attributesStyle = attributesStyle; | 1218 this.attributesStyle = attributesStyle; |
| 1199 } | 1219 } |
| OLD | NEW |