Make sure to apply our styles to our anonymous content no matter what the

page's style language is.  Bug 234761, r=sicking, sr=jst


git-svn-id: svn://10.0.0.236/trunk@154840 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzbarsky%mit.edu
2004-04-14 02:05:52 +00:00
parent c18dea6956
commit c2c4cce304
3 changed files with 14 additions and 5 deletions

View File

@@ -1675,6 +1675,9 @@ nsTextControlFrame::CreateAnonymousContent(nsIPresContext* aPresContext,
if (!divContent)
return NS_ERROR_FAILURE;
// Set the div native anonymous, so CSS will be its style language
// no matter what.
divContent->SetNativeAnonymous(PR_TRUE);
// Set the neccessary style attributes on the text control.