Bug 1097499 part 3 - Add a separate anonbox for text nodes. r=heycam
MozReview-Commit-ID: 1GfoFEGhyka
This commit is contained in:
@@ -91,7 +91,7 @@ nsGfxButtonControlFrame::CreateFrameFor(nsIContent* aContent)
|
||||
nsPresContext* presContext = PresContext();
|
||||
RefPtr<nsStyleContext> textStyleContext;
|
||||
textStyleContext = presContext->StyleSet()->
|
||||
ResolveStyleForNonElement(mStyleContext);
|
||||
ResolveStyleForNonElement(mStyleContext, nsCSSAnonBoxes::mozText);
|
||||
|
||||
newFrame = NS_NewTextFrame(presContext->PresShell(), textStyleContext);
|
||||
// initialize the text frame
|
||||
|
||||
Reference in New Issue
Block a user