From 09cd49975f45dfd4150535067142722af90b32bb Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Thu, 2 Aug 2007 22:07:52 +0000 Subject: [PATCH] Give bullet frames the right style context parent. Bug 387219, r+sr+a=dbaron git-svn-id: svn://10.0.0.236/trunk@231367 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsBlockFrame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);