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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js

Issue 2801943003: [DevTools] Remove SDK.SDKObject (Closed)
Patch Set: Created 3 years, 8 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 if (!styleFile) 138 if (!styleFile)
139 return; 139 return;
140 styleFile.dispose(); 140 styleFile.dispose();
141 this._styleFiles.delete(uiSourceCode); 141 this._styleFiles.delete(uiSourceCode);
142 } 142 }
143 143
144 /** 144 /**
145 * @param {!Common.Event} event 145 * @param {!Common.Event} event
146 */ 146 */
147 _unbindAllUISourceCodes(event) { 147 _unbindAllUISourceCodes(event) {
148 if (event.data.target() !== this._cssModel.target())
149 return;
150 for (var styleFile of this._styleFiles.values()) 148 for (var styleFile of this._styleFiles.values())
151 styleFile.dispose(); 149 styleFile.dispose();
152 this._styleFiles.clear(); 150 this._styleFiles.clear();
153 this._urlToHeadersByFrameId = new Map(); 151 this._urlToHeadersByFrameId = new Map();
154 } 152 }
155 153
156 /** 154 /**
157 * @param {!Common.Event} event 155 * @param {!Common.Event} event
158 */ 156 */
159 _uiSourceCodeAddedToWorkspace(event) { 157 _uiSourceCodeAddedToWorkspace(event) {
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 356
359 dispose() { 357 dispose() {
360 if (this._terminated) 358 if (this._terminated)
361 return; 359 return;
362 this._terminated = true; 360 this._terminated = true;
363 Common.EventTarget.removeEventListeners(this._eventListeners); 361 Common.EventTarget.removeEventListeners(this._eventListeners);
364 } 362 }
365 }; 363 };
366 364
367 Bindings.StyleFile.updateTimeout = 200; 365 Bindings.StyleFile.updateTimeout = 200;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698