RenderNamedFlowThread should only support RenderElement children.
[WebKit-https.git] / Source / WebCore / style / StyleResolveTree.cpp
index 2707b841a87ee48a46c6c01b3af23eb7a4ec3531..0837c1c8ec02a02247681a546d7d879fd89ea834 100644 (file)
@@ -226,7 +226,7 @@ static void createRendererIfNeeded(Element& element, PassRefPtr<RenderStyle> res
     RenderObject* nextRenderer;
     if (parentFlowRenderer) {
         parentRenderer = parentFlowRenderer;
-        nextRenderer = parentFlowRenderer->nextRendererForNode(&element);
+        nextRenderer = parentFlowRenderer->nextRendererForElement(element);
     } else {
         // FIXME: Make this path Element only, handle the root special case separately.
         parentRenderer = renderingParentNode->renderer();