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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js

Issue 2779703004: DevTools: carefully cleanup CSS sourcemaps (Closed)
Patch Set: fix tests 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js
index b6ab08ac745cd0998dd7e1ad1ea4128e44ad59ed..4b652c7e07ce2b40242ca14db9703cbb17b4aa56 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/SourceMapManager.js
@@ -184,7 +184,9 @@ SDK.SourceMapManager = class extends SDK.SDKObject {
*/
function attach(sourceMapURL, client) {
this._sourceMapURLToClients.set(sourceMapURL, client);
- this.dispatchEventToListeners(SDK.SourceMapManager.Events.SourceMapAttached, client);
+ var sourceMap = this._sourceMapByURL.get(sourceMapURL);
+ this.dispatchEventToListeners(
+ SDK.SourceMapManager.Events.SourceMapAttached, {client: client, sourceMap: sourceMap});
}
}
@@ -220,9 +222,11 @@ SDK.SourceMapManager = class extends SDK.SDKObject {
return;
}
this._sourceMapURLToClients.remove(sourceMapURL, client);
+ var sourceMap = this._sourceMapByURL.get(sourceMapURL);
if (!this._sourceMapURLToClients.has(sourceMapURL))
this._sourceMapByURL.delete(sourceMapURL);
- this.dispatchEventToListeners(SDK.SourceMapManager.Events.SourceMapDetached, client);
+ this.dispatchEventToListeners(
+ SDK.SourceMapManager.Events.SourceMapDetached, {client: client, sourceMap: sourceMap});
}
_sourceMapLoadedForTest() {
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/bindings/SASSSourceMapping.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698