Add Node.treeRoot
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Jan 2016 20:09:50 +0000 (20:09 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 27 Jan 2016 20:09:50 +0000 (20:09 +0000)
commitb417539e611084f96624f677d733dc53ed4a3334
treedd63af5f5936d2fa6981a102272424e05a6690f1
parent2061b5cbcafdb6258486c86f7e611f89a009e41b
Add Node.treeRoot
https://bugs.webkit.org/show_bug.cgi?id=153537

Reviewed by Antti Koivisto.

Source/WebCore:

Exposed highestAncestor as Node.prototype.treeRoot, which was added to shadow DOM spec in
https://github.com/w3c/webcomponents/commit/6864a40fe4efa8a737e78512e3c85319ddc5bf8b

See also:
http://w3c.github.io/webcomponents/spec/shadow/#extensions-to-node-interface

Test: fast/shadow-dom/Node-interface-treeRoot.html

* dom/Node.idl:

LayoutTests:

Added a testharness.js test for Node.treeRoot. Also rebaselined a test.

* js/dom/dom-static-property-for-in-iteration-expected.txt: Rebaselined.
* fast/shadow-dom/Node-interface-treeRoot-expected.txt: Added.
* fast/shadow-dom/Node-interface-treeRoot.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@195682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/shadow-dom/Node-interface-treeRoot-expected.txt [new file with mode: 0644]
LayoutTests/fast/shadow-dom/Node-interface-treeRoot.html [new file with mode: 0644]
LayoutTests/js/dom/dom-static-property-for-in-iteration-expected.txt
Source/WebCore/ChangeLog
Source/WebCore/dom/Node.idl