зеркало из https://github.com/mozilla/gecko-dev.git
fix irix build
This commit is contained in:
Родитель
1ce81a7593
Коммит
75f0765630
|
@ -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);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче