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

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

Issue 2014173002: Rename Event.deepPath() to Event.composedPath() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix wrong reset Created 4 years, 6 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 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1026 styleElement.type = "text/css"; 1026 styleElement.type = "text/css";
1027 styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }"; 1027 styleElement.textContent = "html /deep/ * { min-width: 0; min-height: 0; }";
1028 1028
1029 // Support for quirky border-image behavior (<M51), see: 1029 // Support for quirky border-image behavior (<M51), see:
1030 // https://bugs.chromium.org/p/chromium/issues/detail?id=559258 1030 // https://bugs.chromium.org/p/chromium/issues/detail?id=559258
1031 styleElement.textContent += "\nhtml /deep/ .cm-breakpoint .CodeMirror-linenu mber { border-style: solid !important; }"; 1031 styleElement.textContent += "\nhtml /deep/ .cm-breakpoint .CodeMirror-linenu mber { border-style: solid !important; }";
1032 styleElement.textContent += "\nhtml /deep/ .cm-breakpoint.cm-breakpoint-cond itional .CodeMirror-linenumber { border-style: solid !important; }"; 1032 styleElement.textContent += "\nhtml /deep/ .cm-breakpoint.cm-breakpoint-cond itional .CodeMirror-linenumber { border-style: solid !important; }";
1033 window.document.head.appendChild(styleElement); 1033 window.document.head.appendChild(styleElement);
1034 1034
1035 // Support for legacy (<M49) frontends. 1035 // Support for legacy (<M49) frontends.
1036 Event.prototype.deepPath = undefined; 1036 Event.prototype.composedPath = undefined;
dgozman 2016/05/30 18:21:09 Please revet this line. It removes deepPath for ol
hayato 2016/05/31 02:18:04 Okay. Done.
1037 } 1037 }
1038 1038
1039 function windowLoaded() 1039 function windowLoaded()
1040 { 1040 {
1041 window.removeEventListener("DOMContentLoaded", windowLoaded, false); 1041 window.removeEventListener("DOMContentLoaded", windowLoaded, false);
1042 installBackwardsCompatibility(); 1042 installBackwardsCompatibility();
1043 } 1043 }
1044 1044
1045 sanitizeRemoteFrontendUrl(); 1045 sanitizeRemoteFrontendUrl();
1046 if (window.document.head && (window.document.readyState === "complete" || window .document.readyState === "interactive")) 1046 if (window.document.head && (window.document.readyState === "complete" || window .document.readyState === "interactive"))
1047 installBackwardsCompatibility(); 1047 installBackwardsCompatibility();
1048 else 1048 else
1049 window.addEventListener("DOMContentLoaded", windowLoaded, false); 1049 window.addEventListener("DOMContentLoaded", windowLoaded, false);
1050 1050
1051 })(window); 1051 })(window);
1052 1052
1053 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { 1053 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) {
1054 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; 1054 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle;
1055 DOMTokenList.prototype.toggle = function(token, force) 1055 DOMTokenList.prototype.toggle = function(token, force)
1056 { 1056 {
1057 if (arguments.length === 1) 1057 if (arguments.length === 1)
1058 force = !this.contains(token); 1058 force = !this.contains(token);
1059 return this.__originalDOMTokenListToggle(token, !!force); 1059 return this.__originalDOMTokenListToggle(token, !!force);
1060 } 1060 }
1061 } 1061 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698