Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Side by Side Diff: Source/devtools/front_end/sdk/CSSStyleModel.js

Issue 340513003: DevTools: Add JSDoc for static methods, fix JSDoc types and induced errors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698