diff options
Diffstat (limited to 'Source/WebCore/inspector/front-end/ElementsTreeOutline.js')
-rw-r--r-- | Source/WebCore/inspector/front-end/ElementsTreeOutline.js | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/Source/WebCore/inspector/front-end/ElementsTreeOutline.js b/Source/WebCore/inspector/front-end/ElementsTreeOutline.js index 20f149e37..07843c96b 100644 --- a/Source/WebCore/inspector/front-end/ElementsTreeOutline.js +++ b/Source/WebCore/inspector/front-end/ElementsTreeOutline.js @@ -586,11 +586,11 @@ WebInspector.ElementsTreeOutline.prototype = { newTreeItem.expand(); } return newTreeItem; - }, - - __proto__: TreeOutline.prototype + } } +WebInspector.ElementsTreeOutline.prototype.__proto__ = TreeOutline.prototype; + /** * @interface */ @@ -647,11 +647,11 @@ WebInspector.ElementsTreeOutline.PseudoStateDecorator.prototype = { if (descendantCount === 1) return WebInspector.UIString("%d descendant with forced state", descendantCount); return WebInspector.UIString("%d descendants with forced state", descendantCount); - }, - - __proto__: WebInspector.ElementsTreeOutline.ElementDecorator.prototype + } } +WebInspector.ElementsTreeOutline.PseudoStateDecorator.prototype.__proto__ = WebInspector.ElementsTreeOutline.ElementDecorator.prototype; + /** * @constructor * @extends {TreeElement} @@ -1387,8 +1387,6 @@ WebInspector.ElementsTreeElement.prototype = { event.consume(true); } - initialValue = this._convertWhitespaceToEntities(initialValue); - this._htmlEditElement = document.createElement("div"); this._htmlEditElement.className = "source-code elements-tree-editor"; this._htmlEditElement.textContent = initialValue; @@ -1859,9 +1857,6 @@ WebInspector.ElementsTreeElement.prototype = { if (!firstChild || firstChild.nodeType() !== Node.TEXT_NODE) return null; - if (node.hasShadowRoots()) - return null; - var sibling = firstChild.nextSibling; return sibling ? null : firstChild; }, @@ -1990,11 +1985,11 @@ WebInspector.ElementsTreeElement.prototype = { var node = /** @type {WebInspector.DOMNode} */ this.representedObject; WebInspector.RemoteObject.resolveNode(node, "", scrollIntoViewCallback); - }, - - __proto__: TreeElement.prototype + } } +WebInspector.ElementsTreeElement.prototype.__proto__ = TreeElement.prototype; + /** * @constructor */ |