[Shadow] Provide an api of insertionParent().
https://bugs.webkit.org/show_bug.cgi?id=112866

Source/WebCore:

Add insertinParent binding to Element and Text.
It's prefixed (webkitInsertionParent) and guarded by SHADOW_DOM flag.

The bug in the Shadow DOM spec is here:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21067

Reviewed by Dimitri Glazkov.

Test: fast/dom/shadow/insertion-parent.html

* dom/Element.idl:
* dom/Node.cpp:
(WebCore::Node::insertionParentForBinding):
(WebCore):
* dom/Node.h:
(Node):
* dom/Text.idl:

LayoutTests:

Reviewed by Dimitri Glazkov.

* fast/dom/shadow/insertion-parent-expected.txt: Added.
* fast/dom/shadow/insertion-parent.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
[Shadow]: @host styles are not applied dynamically
https://bugs.webkit.org/show_bug.cgi?id=112869

Reviewed by Elliott Sprehn.

Source/WebCore:

Need to add features of @host @-rules to rule feature set.

Test: fast/dom/shadow/athost-apply-dynamically.html

* css/StyleScopeResolver.cpp:
(WebCore::StyleScopeResolver::collectFeaturesTo):

LayoutTests:

* fast/dom/shadow/athost-apply-dynamically-expected.html: Added.
* fast/dom/shadow/athost-apply-dynamically.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146556 268f45cc-cd09-0410-ab3c-d52691b4dbfc