diff --git a/mozilla/layout/generic/nsBlockFrame.cpp b/mozilla/layout/generic/nsBlockFrame.cpp index 53fbaccc14c..814ae039c2f 100644 --- a/mozilla/layout/generic/nsBlockFrame.cpp +++ b/mozilla/layout/generic/nsBlockFrame.cpp @@ -6155,8 +6155,10 @@ nsBlockFrame::SetInitialChildList(nsIAtom* aListName, nsIPresShell *shell = presContext->PresShell(); + nsStyleContext* parentStyle = + CorrectStyleParentFrame(this, pseudoElement)->GetStyleContext(); nsRefPtr kidSC = shell->StyleSet()-> - ResolvePseudoStyleFor(mContent, pseudoElement, mStyleContext); + ResolvePseudoStyleFor(mContent, pseudoElement, parentStyle); // Create bullet frame nsBulletFrame* bullet = new (shell) nsBulletFrame(kidSC);