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

Unified Diff: sky/framework/inspector/dom-agent.sky

Issue 662523003: Add a very minimal CSSAgent (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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: sky/framework/inspector/dom-agent.sky
diff --git a/sky/framework/inspector/dom-agent.sky b/sky/framework/inspector/dom-agent.sky
index f3bc58ee03c92738ebf509b14aa12c81d033878e..91b6a3ecd39140903c546b6babe9c4560ec2fa68 100644
--- a/sky/framework/inspector/dom-agent.sky
+++ b/sky/framework/inspector/dom-agent.sky
@@ -16,6 +16,10 @@ DOMAgent.prototype.getIdForNode_ = function(node) {
return id;
};
+DOMAgent.prototype.getNodeForId = function(nodeId) {
+ return this.idToNode_.get(nodeId);
+};
+
DOMAgent.prototype.serializeChildren_ = function(node) {
var children = [];
for (var child = node.firstChild; child; child = child.nextSibling) {

Powered by Google App Engine
This is Rietveld 408576698