added support for Ender GFX-rendered text control

made nsTextControlFrame an abstract base class for nsGfxTextControlFrame and
nsNativeTextControlFrame
This commit is contained in:
buster@netscape.com
1999-06-12 22:29:54 +00:00
parent d22abde2df
commit d278fc67a4
14 changed files with 2776 additions and 1311 deletions
+5 -1
View File
@@ -20,6 +20,7 @@
#include "nsFormFrame.h"
#include "nsButtonControlFrame.h"
#include "nsTextControlFrame.h"
#include "nsNativeTextControlFrame.h" // XXX: remove when frame construction is done properly
#include "nsIContent.h"
#include "prtypes.h"
#include "nsIAtom.h"
@@ -200,7 +201,10 @@ NS_IMETHODIMP nsFileControlFrame::Reflow(nsIPresContext& aPresContext,
if (disabled) {
text->SetAttribute(kNameSpaceID_HTML, nsHTMLAtoms::disabled, nsAutoString("1"), PR_FALSE); // XXX this should use an "empty" bool value
}
NS_NewTextControlFrame(&childFrame);
// XXX: hard-wired for the native text control frame
// construction of the text control should happen in nsCSSFrameConstruction
NS_NewNativeTextControlFrame(&childFrame);
//XXX: This style should be cached, rather than resolved each time.
// Get pseudo style for the text field