This commit is contained in:
karnaze 1998-05-27 19:57:03 +00:00
Родитель 1ce81a7593
Коммит 75f0765630
2 изменённых файлов: 9 добавлений и 11 удалений

Просмотреть файл

@ -1009,8 +1009,10 @@ char* nsForm::Temp_GenerateTempFileName(PRInt32 aMaxSize, char* file_buf)
// Reverse the time string.
//
// XXX fix this
#ifdef XP_PC
_strrev(ca_time);
#endif
// Create the fully qualified path and file name.
//
sprintf(file_buf, "%s\\%s%s%s", directory, prefix, ca_time, ext);
@ -1021,8 +1023,13 @@ char* nsForm::Temp_GenerateTempFileName(PRInt32 aMaxSize, char* file_buf)
// Use the system call instead of XP_Stat since we already
// know the name and we don't want recursion
//
// XXX fix this
#ifdef XP_PC
struct _stat statinfo;
int status = _stat(file_buf, &statinfo);
#else
int status = 1;
#endif
i_numtries++;
// If it does not exists, we are successful, return the name.

Просмотреть файл

@ -48,16 +48,6 @@
#include "nsUnitConversion.h"
#include "nsCSSLayout.h"
struct nsInputCallbackData
{
nsIPresContext* mPresContext;
nsInputFrame* mFrame;
nsInputCallbackData(nsIPresContext* aPresContext, nsInputFrame* aFrame)
:mPresContext(aPresContext), mFrame(aFrame)
{
}
};
nsInputFrame::nsInputFrame(nsIContent* aContent, nsIFrame* aParentFrame)
: nsInputFrameSuper(aContent, aParentFrame)
{
@ -132,6 +122,7 @@ nsInputFrame::Paint(nsIPresContext& aPresContext,
nsIRenderingContext& aRenderingContext,
const nsRect& aDirtyRect)
{
printf("paint %d \n", this);
nsStyleDisplay* disp =
(nsStyleDisplay*)mStyleContext->GetData(eStyleStruct_Display);