| 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 (function(window) { | 5 (function(window) { |
| 6 | 6 |
| 7 // DevToolsAPI ---------------------------------------------------------------- | 7 // DevToolsAPI ---------------------------------------------------------------- |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * @constructor | 10 * @constructor |
| (...skipping 985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 996 function CSSPrimitiveValue() | 996 function CSSPrimitiveValue() |
| 997 { | 997 { |
| 998 } | 998 } |
| 999 CSSPrimitiveValue.CSS_PX = 5; | 999 CSSPrimitiveValue.CSS_PX = 5; |
| 1000 window.CSSPrimitiveValue = CSSPrimitiveValue; | 1000 window.CSSPrimitiveValue = CSSPrimitiveValue; |
| 1001 | 1001 |
| 1002 // Support for legacy (<M44) frontends. Remove in M48. | 1002 // Support for legacy (<M44) frontends. Remove in M48. |
| 1003 var styleElement = window.document.createElement("style"); | 1003 var styleElement = window.document.createElement("style"); |
| 1004 styleElement.type = "text/css"; | 1004 styleElement.type = "text/css"; |
| 1005 styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }"; | 1005 styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }"; |
| 1006 |
| 1007 // Support for quirky border-image behavior (<M51), see: |
| 1008 // https://bugs.chromium.org/p/chromium/issues/detail?id=559258 |
| 1009 styleElement.textContent += "\nhtml /deep/ .cm-breakpoint .CodeMirror-linenu
mber { border-style: solid !important; }"; |
| 1010 styleElement.textContent += "\nhtml /deep/ .cm-breakpoint.cm-breakpoint-cond
itional .CodeMirror-linenumber { border-style: solid !important; }"; |
| 1006 window.document.head.appendChild(styleElement); | 1011 window.document.head.appendChild(styleElement); |
| 1007 | 1012 |
| 1008 // Support for legacy (<M49) frontends. Remove in M52. | 1013 // Support for legacy (<M49) frontends. Remove in M52. |
| 1009 Event.prototype.deepPath = undefined; | 1014 Event.prototype.deepPath = undefined; |
| 1010 } | 1015 } |
| 1011 | 1016 |
| 1012 function windowLoaded() | 1017 function windowLoaded() |
| 1013 { | 1018 { |
| 1014 window.removeEventListener("DOMContentLoaded", windowLoaded, false); | 1019 window.removeEventListener("DOMContentLoaded", windowLoaded, false); |
| 1015 installBackwardsCompatibility(); | 1020 installBackwardsCompatibility(); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 | 1058 |
| 1054 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1059 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
| 1055 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; | 1060 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; |
| 1056 DOMTokenList.prototype.toggle = function(token, force) | 1061 DOMTokenList.prototype.toggle = function(token, force) |
| 1057 { | 1062 { |
| 1058 if (arguments.length === 1) | 1063 if (arguments.length === 1) |
| 1059 force = !this.contains(token); | 1064 force = !this.contains(token); |
| 1060 return this.__originalDOMTokenListToggle(token, !!force); | 1065 return this.__originalDOMTokenListToggle(token, !!force); |
| 1061 } | 1066 } |
| 1062 } | 1067 } |
| OLD | NEW |