-
commit-queue@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=89172 Patch by Takashi Sakamoto <tasak@google.com> on 2012-06-22 Reviewed by Hajime Morita. Source/WebCore: Added setParentTreeScope to set parent treescope of shadow root to be host's treescope in ElementShadow::addShadowRoot. Test: fast/dom/shadow/parent-tree-scope-in-shadow.html * dom/ElementShadow.cpp: (WebCore::ElementShadow::addShadowRoot): Added setParentTreeScope. * testing/Internals.cpp: (WebCore::Internals::parentTreeScope): Newly added. This method returns a parent tree scope's root node of a given node, because a tree scope's root node is either document node or shadow root node and both nodes derive from TreeScope. So root nodes are treated as TreeScope. * testing/Internals.h: (Internals): * testing/Internals.idl: Added parentTreeScope. LayoutTests: * fast/dom/shadow/parent-tree-scope-in-shadow-expected.txt: Added. * fast/dom/shadow/parent-tree-scope-in-shadow.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@121027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
da0060a4