mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 14:25:52 +00:00
Fixing Mac bustage and adding a flag per roc. Bug 368799.
This commit is contained in:
parent
d21dade003
commit
a54e7d816c
@ -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)
|
||||
{
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user