Needs internal API to return distributed nodes for InsertionPoint
authorshinyak@chromium.org <shinyak@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Oct 2012 17:47:54 +0000 (17:47 +0000)
committershinyak@chromium.org <shinyak@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Oct 2012 17:47:54 +0000 (17:47 +0000)
commitc0979ed6810a978a64fe45a5b1e436c12f1b3693
treeb8ee3f65fc372eb2c240bf54d508a3089e478356
parentb144043eb6736a1054fbc3499b043a2918857250
Needs internal API to return distributed nodes for InsertionPoint
https://bugs.webkit.org/show_bug.cgi?id=98868

Reviewed by Hajime Morita.

.:

* Source/autotools/symbols.filter:

Source/WebCore:

When testing insertion points, we would like to have an internal API which returns a node list
distributed to an insertion point.

We've added the API in Internals.

Test: fast/dom/shadow/distributed-nodes.html

* WebCore.exp.in:
* html/shadow/InsertionPoint.cpp:
(WebCore::InsertionPoint::distributedNodes): Returns the distributed nodes. When InsertionPoint is not
attached, the result will be null, since the distribution is not calculated correctly.
(WebCore):
* html/shadow/InsertionPoint.h:
(InsertionPoint):
* testing/Internals.cpp:
(WebCore::Internals::distributedNodes):
(WebCore):
* testing/Internals.h:
(Internals):
* testing/Internals.idl:

Source/WebKit2:

* win/WebKit2.def:
* win/WebKit2CFLite.def:

LayoutTests:

* fast/dom/shadow/distributed-nodes-expected.txt: Added.
* fast/dom/shadow/distributed-nodes.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@130926 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
ChangeLog
LayoutTests/ChangeLog
LayoutTests/fast/dom/shadow/distributed-nodes-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/shadow/distributed-nodes.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/WebCore.exp.in
Source/WebCore/html/shadow/InsertionPoint.cpp
Source/WebCore/html/shadow/InsertionPoint.h
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl
Source/WebKit2/ChangeLog
Source/WebKit2/win/WebKit2.def
Source/WebKit2/win/WebKit2CFLite.def
Source/autotools/symbols.filter