| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /* eslint-disable indent */ | 5 /* eslint-disable indent */ |
| 6 (function(window) { | 6 (function(window) { |
| 7 | 7 |
| 8 // DevToolsAPI ---------------------------------------------------------------- | 8 // DevToolsAPI ---------------------------------------------------------------- |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }"; | 1046 styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }"; |
| 1047 | 1047 |
| 1048 // Support for quirky border-image behavior (<M51), see: | 1048 // Support for quirky border-image behavior (<M51), see: |
| 1049 // https://bugs.chromium.org/p/chromium/issues/detail?id=559258 | 1049 // https://bugs.chromium.org/p/chromium/issues/detail?id=559258 |
| 1050 styleElement.textContent += "\nhtml /deep/ .cm-breakpoint .CodeMirror-linenu
mber { border-style: solid !important; }"; | 1050 styleElement.textContent += "\nhtml /deep/ .cm-breakpoint .CodeMirror-linenu
mber { border-style: solid !important; }"; |
| 1051 styleElement.textContent += "\nhtml /deep/ .cm-breakpoint.cm-breakpoint-cond
itional .CodeMirror-linenumber { border-style: solid !important; }"; | 1051 styleElement.textContent += "\nhtml /deep/ .cm-breakpoint.cm-breakpoint-cond
itional .CodeMirror-linenumber { border-style: solid !important; }"; |
| 1052 window.document.head.appendChild(styleElement); | 1052 window.document.head.appendChild(styleElement); |
| 1053 | 1053 |
| 1054 // Support for legacy (<M49) frontends. | 1054 // Support for legacy (<M49) frontends. |
| 1055 Event.prototype.deepPath = undefined; | 1055 Event.prototype.deepPath = undefined; |
| 1056 |
| 1057 // Support for legacy (<53) frontends. |
| 1058 window.FileError = { |
| 1059 NOT_FOUND_ERR: DOMException.NOT_FOUND_ERR, |
| 1060 ABORT_ERR: DOMException.ABORT_ERR, |
| 1061 INVALID_MODIFICATION_ERR: DOMException.INVALID_MODIFICATION_ERR, |
| 1062 NOT_READABLE_ERR: 0 // No matching DOMException, so code will be 0. |
| 1063 }; |
| 1056 } | 1064 } |
| 1057 | 1065 |
| 1058 function windowLoaded() | 1066 function windowLoaded() |
| 1059 { | 1067 { |
| 1060 window.removeEventListener("DOMContentLoaded", windowLoaded, false); | 1068 window.removeEventListener("DOMContentLoaded", windowLoaded, false); |
| 1061 installBackwardsCompatibility(); | 1069 installBackwardsCompatibility(); |
| 1062 } | 1070 } |
| 1063 | 1071 |
| 1064 sanitizeRemoteFrontendUrl(); | 1072 sanitizeRemoteFrontendUrl(); |
| 1065 if (window.document.head && (window.document.readyState === "complete" || window
.document.readyState === "interactive")) | 1073 if (window.document.head && (window.document.readyState === "complete" || window
.document.readyState === "interactive")) |
| 1066 installBackwardsCompatibility(); | 1074 installBackwardsCompatibility(); |
| 1067 else | 1075 else |
| 1068 window.addEventListener("DOMContentLoaded", windowLoaded, false); | 1076 window.addEventListener("DOMContentLoaded", windowLoaded, false); |
| 1069 | 1077 |
| 1070 })(window); | 1078 })(window); |
| 1071 | 1079 |
| 1072 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1080 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
| 1073 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; | 1081 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; |
| 1074 DOMTokenList.prototype.toggle = function(token, force) | 1082 DOMTokenList.prototype.toggle = function(token, force) |
| 1075 { | 1083 { |
| 1076 if (arguments.length === 1) | 1084 if (arguments.length === 1) |
| 1077 force = !this.contains(token); | 1085 force = !this.contains(token); |
| 1078 return this.__originalDOMTokenListToggle(token, !!force); | 1086 return this.__originalDOMTokenListToggle(token, !!force); |
| 1079 } | 1087 } |
| 1080 } | 1088 } |
| OLD | NEW |