From 644b97d52a00bb5ecbae9829ab2153ddcad94fbc Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Mon, 19 Feb 2018 12:48:05 +0100 Subject: [PATCH] whitespace removal --- gfx/thebes/gfxMacPlatformFontList.mm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gfx/thebes/gfxMacPlatformFontList.mm b/gfx/thebes/gfxMacPlatformFontList.mm index ab3543b2e..2fba75bdc 100644 --- a/gfx/thebes/gfxMacPlatformFontList.mm +++ b/gfx/thebes/gfxMacPlatformFontList.mm @@ -479,9 +479,9 @@ MacOSFontEntry::GetFontTable(uint32_t aTag) if (fontRef == kInvalidFont) return nullptr; ByteCount dataLength = 0; - + if (!mIsDataUserFont || mIsLocalUserFont) TryGlobalFontTableCache(); - + // See if we already know how long the table is. This saves a potentially // expensive call to ATSGetFontTable() to simply get the length. // Essentially a hardcoded form of FindTagInTableDir; see below. @@ -536,7 +536,7 @@ MacOSFontEntry::GetFontTable(uint32_t aTag) CFMutableDataRef dataRef = ::CFDataCreateMutable(kCFAllocatorDefault, dataLength); if (!dataRef) return nullptr; - + ::CFDataIncreaseLength(dataRef, dataLength); // paranoia if(MOZ_UNLIKELY(::ATSFontGetTable(fontRef, aTag, 0, dataLength, ::CFDataGetMutableBytePtr(dataRef), @@ -544,7 +544,7 @@ MacOSFontEntry::GetFontTable(uint32_t aTag) ::CFRelease(dataRef); return nullptr; } - + return hb_blob_create((const char*)::CFDataGetBytePtr(dataRef), ::CFDataGetLength(dataRef), HB_MEMORY_MODE_READONLY,