Reviewed by Hyatt.
[WebKit-https.git] / WebCore / rendering / RenderObject.cpp
index da70464f269dc0ca73af1042702dfe0522e07599..4ba10ca239b661d15502760ada9ee70f724848de 100644 (file)
@@ -2361,9 +2361,10 @@ RenderStyle* RenderObject::getPseudoStyle(RenderStyle::PseudoId pseudo, RenderSt
     if (!node)
         return 0;
     
-    if (pseudo == RenderStyle::FIRST_LINE_INHERITED)
+    if (pseudo == RenderStyle::FIRST_LINE_INHERITED) {
         result = document()->styleSelector()->styleForElement(static_cast<Element*>(node), parentStyle, false);
-    else
+        result->setStyleType(RenderStyle::FIRST_LINE_INHERITED);
+    } else
         result = document()->styleSelector()->pseudoStyleForElement(pseudo, static_cast<Element*>(node), parentStyle);
     if (result) {
         style()->addPseudoStyle(result);