<rdar://problem/10208291> first-letter in generated before content with display:...
[WebKit-https.git] / Source / WebCore / rendering / RenderObjectChildList.cpp
index 04f8f70a8940064e09a9e3214bd24d2dec573bfc..0e68f9ce322033beb2aeee95e3af724a3b3bc998 100644 (file)
@@ -434,6 +434,7 @@ void RenderObjectChildList::updateBeforeAfterContent(RenderObject* owner, Pseudo
                     RefPtr<RenderStyle> newStyle = RenderStyle::create();
                     newStyle->inheritFrom(pseudoElementStyle);
                     newStyle->setDisplay(curr->style()->display());
+                    newStyle->setStyleType(curr->style()->styleType());
                     curr->setStyle(newStyle);
                     curr = curr->parent();
                 }