Bug 1317179 - Use nsAString as the parameter type and drop Gecko_Utf8SliceToString. r=manishearth

MozReview-Commit-ID: TtA9P8FIAZ

--HG--
extra : rebase_source : 3d3339e2f648db34e4cc917ae0d90d0b8d785c8a
This commit is contained in:
Boris Chiou 2016-11-23 19:24:46 +08:00
parent a48d98cdd6
commit c8c82c263f
3 changed files with 1 additions and 19 deletions

View File

@ -94,7 +94,7 @@ SERVO_BINDING_FUNC(Servo_DeclarationBlock_GetCssText, void,
nsAString* result)
SERVO_BINDING_FUNC(Servo_DeclarationBlock_SerializeOneValue, void,
RawServoDeclarationBlockBorrowed declarations,
const nsIAtom* property, bool is_custom, nsString* buffer)
const nsIAtom* property, bool is_custom, nsAString* buffer)
SERVO_BINDING_FUNC(Servo_DeclarationBlock_Count, uint32_t,
RawServoDeclarationBlockBorrowed declarations)
SERVO_BINDING_FUNC(Servo_DeclarationBlock_GetNthProperty, bool,

View File

@ -601,19 +601,6 @@ Gecko_AtomEqualsUTF8IgnoreCase(nsIAtom* aAtom, const char* aString, uint32_t aLe
return nsContentUtils::EqualsIgnoreASCIICase(atomStr, inStr);
}
void
Gecko_Utf8SliceToString(nsString* aString,
const uint8_t* aBuffer,
size_t aBufferLen)
{
MOZ_ASSERT(aString);
MOZ_ASSERT(aBuffer);
aString->Truncate();
AppendUTF8toUTF16(Substring(reinterpret_cast<const char*>(aBuffer),
aBufferLen), *aString);
}
void
Gecko_FontFamilyList_Clear(FontFamilyList* aList) {
aList->Clear();

View File

@ -154,11 +154,6 @@ const uint16_t* Gecko_GetAtomAsUTF16(nsIAtom* aAtom, uint32_t* aLength);
bool Gecko_AtomEqualsUTF8(nsIAtom* aAtom, const char* aString, uint32_t aLength);
bool Gecko_AtomEqualsUTF8IgnoreCase(nsIAtom* aAtom, const char* aString, uint32_t aLength);
// Strings (temporary until bug 1294742)
void Gecko_Utf8SliceToString(nsString* aString,
const uint8_t* aBuffer,
size_t aBufferLen);
// Font style
void Gecko_FontFamilyList_Clear(FontFamilyList* aList);
void Gecko_FontFamilyList_AppendNamed(FontFamilyList* aList, nsIAtom* aName);