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
This commit is contained in:
@@ -6155,8 +6155,10 @@ nsBlockFrame::SetInitialChildList(nsIAtom* aListName,
|
||||
|
||||
nsIPresShell *shell = presContext->PresShell();
|
||||
|
||||
nsStyleContext* parentStyle =
|
||||
CorrectStyleParentFrame(this, pseudoElement)->GetStyleContext();
|
||||
nsRefPtr<nsStyleContext> kidSC = shell->StyleSet()->
|
||||
ResolvePseudoStyleFor(mContent, pseudoElement, mStyleContext);
|
||||
ResolvePseudoStyleFor(mContent, pseudoElement, parentStyle);
|
||||
|
||||
// Create bullet frame
|
||||
nsBulletFrame* bullet = new (shell) nsBulletFrame(kidSC);
|
||||
|
||||
Reference in New Issue
Block a user