Fixing Mac bustage and adding a flag per roc. Bug 368799.

This commit is contained in:
bzbarsky%mit.edu 2007-02-09 02:27:53 +00:00
parent d21dade003
commit a54e7d816c
2 changed files with 3 additions and 2 deletions

View File

@ -344,7 +344,7 @@ public:
gfxWrapperTextRun(gfxAtsuiFontGroup *aGroup,
const PRUint8* aString, PRUint32 aLength,
gfxTextRunFactory::Parameters* aParams)
: gfxTextRun(aParams, PR_TRUE),
: gfxTextRun(aParams),
mContext(aParams->mContext),
mInner(NS_ConvertASCIItoUTF16(nsDependentCSubstring(reinterpret_cast<const char*>(aString),
reinterpret_cast<const char*>(aString + aLength))),
@ -356,7 +356,7 @@ public:
gfxWrapperTextRun(gfxAtsuiFontGroup *aGroup,
const PRUnichar* aString, PRUint32 aLength,
gfxTextRunFactory::Parameters* aParams)
: gfxTextRun(aParams, PR_TRUE), mContext(aParams->mContext),
: gfxTextRun(aParams), mContext(aParams->mContext),
mInner(nsDependentSubstring(aString, aString + aLength), aGroup),
mLength(aLength)
{

View File

@ -654,6 +654,7 @@ gfxTextRun *
gfxWindowsFontGroup::MakeTextRun(const PRUint8* aString, PRUint32 aLength,
Parameters* aParams)
{
aParams->mFlags |= gfxTextRunFactory::TEXT_IS_8BIT;
return new gfxWrapperTextRun(this, aString, aLength, aParams);
}