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

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

Issue 6893091: Merge 84909 - 2011-04-26 Pavel Feldman <pfeldman@google.com> Web Inspector: New Style is... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 8 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: Source/WebCore/inspector/front-end/DOMAgent.js
===================================================================
--- Source/WebCore/inspector/front-end/DOMAgent.js (revision 85172)
+++ Source/WebCore/inspector/front-end/DOMAgent.js (working copy)
@@ -312,6 +312,16 @@
};
this._attributesMap[name] = attr;
this._attributes.push(attr);
+ },
+
+ ownerDocumentElement: function()
+ {
+ // document element is the child of the document / frame owner node that has documentURL property.
+ // FIXME: return document nodes as a part of the DOM tree structure.
+ var node = this;
+ while (node.parentNode && !node.parentNode.documentURL)
+ node = node.parentNode;
+ return node;
}
}
@@ -387,6 +397,8 @@
return;
return function(error, result)
{
+ if (error)
+ console.error("Error during DOMAgent operation: " + error);
callback(error ? null : result);
}
},
« no previous file with comments | « Source/WebCore/inspector/front-end/CSSStyleModel.js ('k') | Source/WebCore/inspector/front-end/StylesSidebarPane.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698