whitespace removal

This commit is contained in:
Riccardo Mottola 2018-02-19 12:48:05 +01:00
parent 23cdfbc71e
commit 644b97d52a

View File

@ -479,9 +479,9 @@ MacOSFontEntry::GetFontTable(uint32_t aTag)
if (fontRef == kInvalidFont) return nullptr; if (fontRef == kInvalidFont) return nullptr;
ByteCount dataLength = 0; ByteCount dataLength = 0;
if (!mIsDataUserFont || mIsLocalUserFont) TryGlobalFontTableCache(); if (!mIsDataUserFont || mIsLocalUserFont) TryGlobalFontTableCache();
// See if we already know how long the table is. This saves a potentially // See if we already know how long the table is. This saves a potentially
// expensive call to ATSGetFontTable() to simply get the length. // expensive call to ATSGetFontTable() to simply get the length.
// Essentially a hardcoded form of FindTagInTableDir; see below. // Essentially a hardcoded form of FindTagInTableDir; see below.
@ -536,7 +536,7 @@ MacOSFontEntry::GetFontTable(uint32_t aTag)
CFMutableDataRef dataRef = ::CFDataCreateMutable(kCFAllocatorDefault, CFMutableDataRef dataRef = ::CFDataCreateMutable(kCFAllocatorDefault,
dataLength); dataLength);
if (!dataRef) return nullptr; if (!dataRef) return nullptr;
::CFDataIncreaseLength(dataRef, dataLength); // paranoia ::CFDataIncreaseLength(dataRef, dataLength); // paranoia
if(MOZ_UNLIKELY(::ATSFontGetTable(fontRef, aTag, 0, dataLength, if(MOZ_UNLIKELY(::ATSFontGetTable(fontRef, aTag, 0, dataLength,
::CFDataGetMutableBytePtr(dataRef), ::CFDataGetMutableBytePtr(dataRef),
@ -544,7 +544,7 @@ MacOSFontEntry::GetFontTable(uint32_t aTag)
::CFRelease(dataRef); ::CFRelease(dataRef);
return nullptr; return nullptr;
} }
return hb_blob_create((const char*)::CFDataGetBytePtr(dataRef), return hb_blob_create((const char*)::CFDataGetBytePtr(dataRef),
::CFDataGetLength(dataRef), ::CFDataGetLength(dataRef),
HB_MEMORY_MODE_READONLY, HB_MEMORY_MODE_READONLY,