Chromium Code Reviews| 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 954 | 954 |
| 955 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 955 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
| 956 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; | 956 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; |
| 957 DOMTokenList.prototype.toggle = function(token, force) | 957 DOMTokenList.prototype.toggle = function(token, force) |
| 958 { | 958 { |
| 959 if (arguments.length === 1) | 959 if (arguments.length === 1) |
| 960 force = !this.contains(token); | 960 force = !this.contains(token); |
| 961 return this.__originalDOMTokenListToggle(token, !!force); | 961 return this.__originalDOMTokenListToggle(token, !!force); |
| 962 } | 962 } |
| 963 } | 963 } |
| 964 | |
| 965 // Support for legacy (<M49) frontends. Remove in M52. | |
| 966 if (Object.getOwnPropertyDescriptor(Event.prototype, "deepPath")) | |
|
dgozman
2016/02/02 02:45:45
Please move this code (and a block above while we
samli
2016/02/03 00:07:11
Done.
| |
| 967 Event.prototype.deepPath = undefined; | |
| OLD | NEW |