diff options
Diffstat (limited to 'Source/WebCore/css/StyleResolver.cpp')
| -rw-r--r-- | Source/WebCore/css/StyleResolver.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/WebCore/css/StyleResolver.cpp b/Source/WebCore/css/StyleResolver.cpp index 9318b7a16..ad8ddcb3c 100644 --- a/Source/WebCore/css/StyleResolver.cpp +++ b/Source/WebCore/css/StyleResolver.cpp @@ -75,6 +75,7 @@ #include "HTMLProgressElement.h" #include "HTMLStyleElement.h" #include "HTMLTextAreaElement.h" +#include "InsertionPoint.h" #include "InspectorInstrumentation.h" #include "KeyframeList.h" #include "LinkHash.h" @@ -961,8 +962,9 @@ inline bool shouldResetStyleInheritance(NodeRenderingContext& context) InsertionPoint* insertionPoint = context.insertionPoint(); if (!insertionPoint) return false; - ASSERT(context.node()->parentElement()); - ElementShadow* shadow = context.node()->parentElement()->shadow(); + + ASSERT(parentElementForDistribution(context.node())); + ElementShadow* shadow = parentElementForDistribution(context.node())->shadow(); ASSERT(shadow); for ( ; insertionPoint; ) { |
