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 198476998c399c142edeff8f16533aa4c2621dd9..49a316ec353d8e12a0ae04d3fcad47fc66168c14 100644 |
--- a/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js |
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/DOMModel.js |
@@ -53,7 +53,7 @@ WebInspector.DOMNode = function(domModel, doc, isInShadowTree, payload) |
this._nodeValue = payload.nodeValue; |
this._pseudoType = payload.pseudoType; |
this._shadowRootType = payload.shadowRootType; |
- this._frameId = payload.frameId || null; |
+ this._frameOwnerFrameId = payload.frameId || null; |
this._xmlVersion = payload.xmlVersion; |
this._shadowRoots = []; |
@@ -603,10 +603,10 @@ WebInspector.DOMNode.prototype = { |
*/ |
frameId: function() |
{ |
- var node = this; |
- while (!node._frameId && node.parentNode) |
+ var node = this.parentNode || this; |
+ while (!node._frameOwnerFrameId && node.parentNode) |
node = node.parentNode; |
- return node._frameId; |
+ return node._frameOwnerFrameId; |
}, |
/** |