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

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

Issue 1371723002: Devtools Animations: Add method to fetch CSS keyframed animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698