Web Inspector: add runtime flag to determine if inspector's source files were flattened.
[WebKit-https.git] / Source / WebCore / inspector / front-end / View.js
index 7bf3c55..e1e601f 100644 (file)
@@ -299,6 +299,8 @@ WebInspector.View.prototype = {
 
     registerRequiredCSS: function(cssFile)
     {
 
     registerRequiredCSS: function(cssFile)
     {
+        if (window.flattenImports)
+            cssFile = cssFile.split("/").reverse()[0];
         this._cssFiles.push(cssFile);
     },
 
         this._cssFiles.push(cssFile);
     },