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

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

Issue 2376583002: DevTools: remove WI.NetworkMapping.networkURL (Closed)
Patch Set: do not blackbox fs uiSourceCodes Created 4 years, 3 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
Index: third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js b/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js
index 4064f3070e9b1d7a939fcc9516610e5ac9df4ef3..ec0347b4544a503f97722719f725b92268aca056 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/StylesSourceMapping.js
@@ -163,10 +163,9 @@ WebInspector.StylesSourceMapping.prototype = {
_uiSourceCodeAddedToWorkspace: function(event)
{
var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (event.data);
- var networkURL = this._networkMapping.networkURL(uiSourceCode);
- if (!networkURL || !this._urlToHeadersByFrameId.has(networkURL))
+ if (!this._urlToHeadersByFrameId.has(uiSourceCode.url()))
return;
- this._bindUISourceCode(uiSourceCode, this._urlToHeadersByFrameId.get(networkURL).valuesArray()[0].valuesArray()[0]);
+ this._bindUISourceCode(uiSourceCode, this._urlToHeadersByFrameId.get(uiSourceCode.url()).valuesArray()[0].valuesArray()[0]);
},
/**
@@ -209,10 +208,9 @@ WebInspector.StylesSourceMapping.prototype = {
*/
_setStyleContent: function(uiSourceCode, content, majorChange)
{
- var networkURL = this._networkMapping.networkURL(uiSourceCode);
- var styleSheetIds = this._cssModel.styleSheetIdsForURL(networkURL);
+ var styleSheetIds = this._cssModel.styleSheetIdsForURL(uiSourceCode.url());
if (!styleSheetIds.length)
- return Promise.resolve(/** @type {?string} */("No stylesheet found: " + networkURL));
+ return Promise.resolve(/** @type {?string} */("No stylesheet found: " + uiSourceCode.url()));
this._isSettingContent = true;

Powered by Google App Engine
This is Rietveld 408576698