Index: Source/WebCore/dom/NodeRenderingContext.cpp |
=================================================================== |
--- Source/WebCore/dom/NodeRenderingContext.cpp (revision 96024) |
+++ Source/WebCore/dom/NodeRenderingContext.cpp (working copy) |
@@ -61,7 +61,8 @@ |
m_visualParentShadowRoot = toElement(parent)->shadowRoot(); |
if (m_visualParentShadowRoot) { |
- if ((m_includer = m_visualParentShadowRoot->includerFor(m_node))) { |
+ if ((m_includer = m_visualParentShadowRoot->includerFor(m_node)) |
+ && m_visualParentShadowRoot->isInclusionSelectorActive()) { |
m_phase = AttachContentForwarded; |
m_parentNodeForRenderingAndStyle = NodeRenderingContext(m_includer).parentNodeForRenderingAndStyle(); |
return; |