Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(91)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/devtools.js

Issue 1653213002: Devtools: Use Event.deepPath as a function if available. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698