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

Unified Diff: inspector/front-end/DOMAgent.js

Issue 542055: DevTools: injected script per context(WebCore part) (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 10 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
« no previous file with comments | « inspector/front-end/ConsoleView.js ('k') | inspector/front-end/Database.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « inspector/front-end/ConsoleView.js ('k') | inspector/front-end/Database.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698