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

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

Issue 2756103002: DevTools: remove SDK.ResourceTreeFrame.fromXXX methods (Closed)
Patch Set: Created 3 years, 9 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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 return null; 214 return null;
215 } 215 }
216 216
217 /** 217 /**
218 * @param {!SDK.CSSStyleSheetHeader} header 218 * @param {!SDK.CSSStyleSheetHeader} header
219 */ 219 */
220 _detachSourceMap(header) { 220 _detachSourceMap(header) {
221 if (!header.sourceMapURL || !this._sourceMapURLToHeaders.hasValue(header.sou rceMapURL, header)) 221 if (!header.sourceMapURL || !this._sourceMapURLToHeaders.hasValue(header.sou rceMapURL, header))
222 return; 222 return;
223 this._sourceMapURLToHeaders.remove(header.sourceMapURL, header); 223 this._sourceMapURLToHeaders.remove(header.sourceMapURL, header);
224 var sourceMap = this._sourceMapByURL.get(header.sourceMapURL);
224 if (!this._sourceMapURLToHeaders.has(header.sourceMapURL)) 225 if (!this._sourceMapURLToHeaders.has(header.sourceMapURL))
225 this._sourceMapByURL.delete(header.sourceMapURL); 226 this._sourceMapByURL.delete(header.sourceMapURL);
226 this.dispatchEventToListeners(SDK.CSSModel.Events.SourceMapDetached, header) ; 227 this.dispatchEventToListeners(SDK.CSSModel.Events.SourceMapDetached, {header : header, sourceMap: sourceMap});
dgozman 2017/03/17 19:00:21 This removes source map sources whenever first hea
lushnikov 2017/03/17 21:21:47 I started writing tests and it turned out that we
227 } 228 }
228 229
229 /** 230 /**
230 * @return {!SDK.DOMModel} 231 * @return {!SDK.DOMModel}
231 */ 232 */
232 domModel() { 233 domModel() {
233 return this._domModel; 234 return this._domModel;
234 } 235 }
235 236
236 /** 237 /**
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
1166 SDK.CSSModel.InlineStyleResult = class { 1167 SDK.CSSModel.InlineStyleResult = class {
1167 /** 1168 /**
1168 * @param {?SDK.CSSStyleDeclaration} inlineStyle 1169 * @param {?SDK.CSSStyleDeclaration} inlineStyle
1169 * @param {?SDK.CSSStyleDeclaration} attributesStyle 1170 * @param {?SDK.CSSStyleDeclaration} attributesStyle
1170 */ 1171 */
1171 constructor(inlineStyle, attributesStyle) { 1172 constructor(inlineStyle, attributesStyle) {
1172 this.inlineStyle = inlineStyle; 1173 this.inlineStyle = inlineStyle;
1173 this.attributesStyle = attributesStyle; 1174 this.attributesStyle = attributesStyle;
1174 } 1175 }
1175 }; 1176 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698