mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 608940 - remove unused function gfxTextRun::Clone. r=jdaggett
This commit is contained in:
parent
eb0e942dc9
commit
0d12b6c03d
@ -3084,22 +3084,6 @@ gfxTextRun::~gfxTextRun()
|
||||
MOZ_COUNT_DTOR(gfxTextRun);
|
||||
}
|
||||
|
||||
gfxTextRun *
|
||||
gfxTextRun::Clone(const gfxTextRunFactory::Parameters *aParams, const void *aText,
|
||||
PRUint32 aLength, gfxFontGroup *aFontGroup, PRUint32 aFlags)
|
||||
{
|
||||
if (!mCharacterGlyphs)
|
||||
return nsnull;
|
||||
|
||||
nsAutoPtr<gfxTextRun> textRun;
|
||||
textRun = gfxTextRun::Create(aParams, aText, aLength, aFontGroup, aFlags);
|
||||
if (!textRun)
|
||||
return nsnull;
|
||||
|
||||
textRun->CopyGlyphDataFrom(this, 0, mCharacterCount, 0);
|
||||
return textRun.forget();
|
||||
}
|
||||
|
||||
PRBool
|
||||
gfxTextRun::SetPotentialLineBreaks(PRUint32 aStart, PRUint32 aLength,
|
||||
PRPackedBool *aBreakBefore,
|
||||
|
@ -1702,15 +1702,6 @@ public:
|
||||
static gfxTextRun *Create(const gfxTextRunFactory::Parameters *aParams,
|
||||
const void *aText, PRUint32 aLength, gfxFontGroup *aFontGroup, PRUint32 aFlags);
|
||||
|
||||
// Clone this textrun, according to the given parameters. This textrun's
|
||||
// glyph data is copied, so the text and length must be the same as this
|
||||
// textrun's. If there's a problem, return null. Actual linebreaks will
|
||||
// be set as per aParams; there will be no potential linebreaks.
|
||||
// If aText is not persistent (aFlags & TEXT_IS_PERSISTENT), the
|
||||
// textrun will copy it.
|
||||
virtual gfxTextRun *Clone(const gfxTextRunFactory::Parameters *aParams, const void *aText,
|
||||
PRUint32 aLength, gfxFontGroup *aFontGroup, PRUint32 aFlags);
|
||||
|
||||
/**
|
||||
* This class records the information associated with a character in the
|
||||
* input string. It's optimized for the case where there is one glyph
|
||||
|
Loading…
Reference in New Issue
Block a user