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

Unified Diff: third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js

Issue 1650283002: DevTools: remove DOM and Bindings dependencies from inspector/v8. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js
diff --git a/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js b/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js
index cd41078875d5f77063214312a75a31a68ec432a4..b94f37fe23d5d95bcce4f015bf06b98f8bb8e4e0 100644
--- a/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js
+++ b/third_party/WebKit/Source/core/inspector/v8/InjectedScriptSource.js
@@ -562,7 +562,7 @@ InjectedScript.prototype = {
if (descriptor) {
if (accessorPropertiesOnly && !("get" in descriptor || "set" in descriptor))
continue;
- if ("get" in descriptor && "set" in descriptor && name != "__proto__" && InjectedScriptHost.isDOMWrapper(object) && !doesAttributeHaveObservableSideEffectOnGet(object, name)) {
+ if ("get" in descriptor && "set" in descriptor && name != "__proto__" && InjectedScriptHost.formatAccessorsAsProperties(object) && !doesAttributeHaveObservableSideEffectOnGet(object, name)) {
descriptor.value = InjectedScriptHost.suppressWarningsAndCallFunction(function(attribute) { return this[attribute]; }, object, [name]);
descriptor.isOwn = true;
delete descriptor.get;
@@ -1025,7 +1025,7 @@ InjectedScript.prototype = {
_isHTMLAllCollection: function(object)
{
// document.all is reported as undefined, but we still want to process it.
- return (typeof object === "undefined") && InjectedScriptHost.isHTMLAllCollection(object);
+ return (typeof object === "undefined") && !!InjectedScriptHost.subtype(object);
},
/**

Powered by Google App Engine
This is Rietveld 408576698