Index: Source/core/rendering/RenderNamedFlowThread.cpp |
diff --git a/Source/core/rendering/RenderNamedFlowThread.cpp b/Source/core/rendering/RenderNamedFlowThread.cpp |
index f83f46c78a403812d6227a5676ff8ffd2cbd0b6e..a25a37399e008424d89d66b6c875e2b14f508cd9 100644 |
--- a/Source/core/rendering/RenderNamedFlowThread.cpp |
+++ b/Source/core/rendering/RenderNamedFlowThread.cpp |
@@ -413,6 +413,8 @@ bool RenderNamedFlowThread::isChildAllowed(RenderObject* child, RenderStyle* sty |
ASSERT(child->node()->isElementNode()); |
RenderObject* parentRenderer = NodeRenderingContext(child->node()).parentRenderer(); |
+ if (!parentRenderer) |
+ return true; |
return parentRenderer->isChildAllowed(child, style); |
} |