OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
779 _modularizeURL: function(resourceName) | 779 _modularizeURL: function(resourceName) |
780 { | 780 { |
781 return normalizePath(this._name + "/" + resourceName); | 781 return normalizePath(this._name + "/" + resourceName); |
782 }, | 782 }, |
783 | 783 |
784 /** | 784 /** |
785 * @return {string|undefined} | 785 * @return {string|undefined} |
786 */ | 786 */ |
787 _remoteBase: function() | 787 _remoteBase: function() |
788 { | 788 { |
789 return this._descriptor.remote && Runtime._remoteBase || undefined; | 789 return !Runtime.queryParam("debugFrontend") && this._descriptor.remote &
& Runtime._remoteBase || undefined; |
790 }, | 790 }, |
791 | 791 |
792 /** | 792 /** |
793 * @param {string} value | 793 * @param {string} value |
794 * @return {string} | 794 * @return {string} |
795 */ | 795 */ |
796 substituteURL: function(value) | 796 substituteURL: function(value) |
797 { | 797 { |
798 var base = this._remoteBase() || ""; | 798 var base = this._remoteBase() || ""; |
799 return value.replace(/@url\(([^\)]*?)\)/g, convertURL.bind(this)); | 799 return value.replace(/@url\(([^\)]*?)\)/g, convertURL.bind(this)); |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1125 { | 1125 { |
1126 var sourceURL = self.location.href; | 1126 var sourceURL = self.location.href; |
1127 if (self.location.search) | 1127 if (self.location.search) |
1128 sourceURL = sourceURL.replace(self.location.search, ""); | 1128 sourceURL = sourceURL.replace(self.location.search, ""); |
1129 sourceURL = sourceURL.substring(0, sourceURL.lastIndexOf("/") + 1) + path; | 1129 sourceURL = sourceURL.substring(0, sourceURL.lastIndexOf("/") + 1) + path; |
1130 return "\n/*# sourceURL=" + sourceURL + " */"; | 1130 return "\n/*# sourceURL=" + sourceURL + " */"; |
1131 } | 1131 } |
1132 | 1132 |
1133 /** @type {!Runtime} */ | 1133 /** @type {!Runtime} */ |
1134 var runtime; | 1134 var runtime; |
OLD | NEW |