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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 target.registerCSSDispatcher(new WebInspector.CSSDispatcher(this)); | 46 target.registerCSSDispatcher(new WebInspector.CSSDispatcher(this)); |
47 this._agent.enable(this._wasEnabled.bind(this)); | 47 this._agent.enable(this._wasEnabled.bind(this)); |
48 this._resetStyleSheets(); | 48 this._resetStyleSheets(); |
49 } | 49 } |
50 | 50 |
51 WebInspector.CSSStyleModel.PseudoStatePropertyName = "pseudoState"; | 51 WebInspector.CSSStyleModel.PseudoStatePropertyName = "pseudoState"; |
52 | 52 |
53 /** | 53 /** |
54 * @param {!WebInspector.CSSStyleModel} cssModel | 54 * @param {!WebInspector.CSSStyleModel} cssModel |
55 * @param {!Array.<!CSSAgent.RuleMatch>|undefined} matchArray | 55 * @param {!Array.<!CSSAgent.RuleMatch>|undefined} matchArray |
| 56 * @return {!Array.<!WebInspector.CSSRule>} |
56 */ | 57 */ |
57 WebInspector.CSSStyleModel.parseRuleMatchArrayPayload = function(cssModel, match
Array) | 58 WebInspector.CSSStyleModel.parseRuleMatchArrayPayload = function(cssModel, match
Array) |
58 { | 59 { |
59 if (!matchArray) | 60 if (!matchArray) |
60 return []; | 61 return []; |
61 | 62 |
62 var result = []; | 63 var result = []; |
63 for (var i = 0; i < matchArray.length; ++i) | 64 for (var i = 0; i < matchArray.length; ++i) |
64 result.push(WebInspector.CSSRule.parsePayload(cssModel, matchArray[i].ru
le, matchArray[i].matchingSelectors)); | 65 result.push(WebInspector.CSSRule.parsePayload(cssModel, matchArray[i].ru
le, matchArray[i].matchingSelectors)); |
65 return result; | 66 return result; |
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1716 for (var i = 0; i < callbacks.length; ++i) | 1717 for (var i = 0; i < callbacks.length; ++i) |
1717 callbacks[i](computedStyle); | 1718 callbacks[i](computedStyle); |
1718 } | 1719 } |
1719 } | 1720 } |
1720 } | 1721 } |
1721 | 1722 |
1722 /** | 1723 /** |
1723 * @type {!WebInspector.CSSStyleModel} | 1724 * @type {!WebInspector.CSSStyleModel} |
1724 */ | 1725 */ |
1725 WebInspector.cssModel; | 1726 WebInspector.cssModel; |
OLD | NEW |