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

Unified Diff: third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js

Issue 2571713002: DevTools: [SSP] do not autocomplete SVG properties for non-svg nodes (Closed)
Patch Set: Created 4 years 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/devtools/front_end/sdk/DOMModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js
index b4a07c0bfd87bd2deb885acd9ecee77c5252f336..32cc32ffae17a1d36778a16a0d6e1d2d733d42b7 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js
@@ -75,6 +75,7 @@ SDK.DOMNode = class extends SDK.SDKObject {
this._shadowRootType = payload.shadowRootType;
this._frameOwnerFrameId = payload.frameId || null;
this._xmlVersion = payload.xmlVersion;
+ this._isSVG = !!payload.isSVG;
this._shadowRoots = [];
@@ -146,6 +147,13 @@ SDK.DOMNode = class extends SDK.SDKObject {
}
/**
+ * @return {boolean}
+ */
+ isSVG() {
dgozman 2016/12/13 03:16:46 isSVGNode
lushnikov 2016/12/13 07:05:31 Done.
+ return this._isSVG;
+ }
+
+ /**
* @return {!SDK.DOMModel}
*/
domModel() {

Powered by Google App Engine
This is Rietveld 408576698