Index: inspector/front-end/DOMAgent.js |
=================================================================== |
--- inspector/front-end/DOMAgent.js (revision 53180) |
+++ inspector/front-end/DOMAgent.js (working copy) |
@@ -33,6 +33,10 @@ |
this.ownerDocument = doc; |
this.id = payload.id; |
+ // injectedScriptId is a node is for DOM nodes which should be converted |
+ // to corresponding InjectedScript by the inspector backend. We indicate |
+ // this by making injectedScriptId negative. |
+ this.injectedScriptId = -payload.id; |
this.nodeType = payload.nodeType; |
this.nodeName = payload.nodeName; |
this.localName = payload.localName; |
@@ -513,6 +517,7 @@ |
WebInspector.CSSStyleDeclaration = function(payload) |
{ |
this.id = payload.id; |
+ this.injectedScriptId = payload.injectedScriptId; |
this.width = payload.width; |
this.height = payload.height; |
this.__disabledProperties = payload.__disabledProperties; |
@@ -555,6 +560,7 @@ |
{ |
var rule = {}; |
rule.id = payload.id; |
+ rule.injectedScriptId = payload.injectedScriptId; |
rule.selectorText = payload.selectorText; |
rule.style = new WebInspector.CSSStyleDeclaration(payload.style); |
rule.style.parentRule = rule; |