[Shadow DOM] Extend a 'path' notation in utility function so that we can specify...
authorhayato@chromium.org <hayato@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Mar 2012 07:19:07 +0000 (07:19 +0000)
committerhayato@chromium.org <hayato@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Mar 2012 07:19:07 +0000 (07:19 +0000)
commit12e706aeac6cba6a19b7e151f905a43807d5c6d2
tree91dff5139586e24136ef12d69b834348e9234623
parentc01759a2b2bdd2ab54555dbe99dd9850d8b0f5d9
[Shadow DOM] Extend a 'path' notation in utility function so that we can specify arbitrary ShadowRoot.
https://bugs.webkit.org/show_bug.cgi?id=80405

Reviewed by Dimitri Glazkov.

Extract common utility function, getElementByIdInShadow(path), into a shadow-dom.js
(renamed from create-dom.js) and support 'consecutive slashes' notation so that
we can specify arbitrary ShadowRoot in shadow DOM tree.  Until now, we can get an element
only from the youngest ShadowRoot.

* fast/dom/shadow/access-key.html:
* fast/dom/shadow/get-element-by-id-in-shadow-root-expected.txt:
* fast/dom/shadow/get-element-by-id-in-shadow-root.html:
* fast/dom/shadow/resources/shadow-dom.js: Renamed from LayoutTests/fast/dom/shadow/resources/create-dom.js.
(createShadowRoot):
(createDOM):
(isShadowRoot):
(getElementInShadowTreeStack):
* fast/dom/shadow/shadow-boundary-events.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@110022 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/dom/shadow/access-key.html
LayoutTests/fast/dom/shadow/get-element-by-id-in-shadow-root-expected.txt
LayoutTests/fast/dom/shadow/get-element-by-id-in-shadow-root.html
LayoutTests/fast/dom/shadow/resources/shadow-dom.js [moved from LayoutTests/fast/dom/shadow/resources/create-dom.js with 58% similarity]
LayoutTests/fast/dom/shadow/shadow-boundary-events.html