diff options
Diffstat (limited to 'Source/WebCore/dom/NodeRenderingContext.cpp')
-rw-r--r-- | Source/WebCore/dom/NodeRenderingContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/WebCore/dom/NodeRenderingContext.cpp b/Source/WebCore/dom/NodeRenderingContext.cpp index 271f5cad0..5898419a6 100644 --- a/Source/WebCore/dom/NodeRenderingContext.cpp +++ b/Source/WebCore/dom/NodeRenderingContext.cpp @@ -71,7 +71,7 @@ NodeRenderingContext::NodeRenderingContext(Node* node) } if (parent->isElementNode() || parent->isShadowRoot()) { - if (parent->isElementNode() && toElement(parent)->hasShadowRoot()) + if (parent->isElementNode()) m_visualParentShadow = toElement(parent)->shadow(); else if (parent->isShadowRoot()) m_visualParentShadow = toShadowRoot(parent)->owner(); |