Bug 1389436 - Explicitly instantiate gfxFont::GetShapedWord<uint8_t> for its use in gfxTextRun.cpp. r?jfkthame draft
authorMike Hommey <mh+mozilla@glandium.org>
Fri, 11 Aug 2017 21:50:19 +0900
changeset 644877 ec2d40004cf67ccdecf12e89450c25a3b46d3785
parent 644465 253a8560dc34456d2e8a13065e4b3eb5ecf6704f
child 725736 1bdfcfb152ddbd48df0fcc3aa48bed50c15af6e3
push id73575
push userbmo:mh+mozilla@glandium.org
push dateFri, 11 Aug 2017 12:52:13 +0000
reviewersjfkthame
bugs1389436
milestone57.0a1
Bug 1389436 - Explicitly instantiate gfxFont::GetShapedWord<uint8_t> for its use in gfxTextRun.cpp. r?jfkthame
gfx/thebes/gfxFont.cpp
--- a/gfx/thebes/gfxFont.cpp
+++ b/gfx/thebes/gfxFont.cpp
@@ -2634,16 +2634,28 @@ gfxFont::GetShapedWord(DrawTarget *aDraw
         ShapeText(aDrawTarget, aText, 0, aLength, aRunScript, aVertical,
                   aRounding, sw);
 
     NS_WARNING_ASSERTION(ok, "failed to shape word - expect garbled text");
 
     return sw;
 }
 
+template gfxShapedWord*
+gfxFont::GetShapedWord(DrawTarget *aDrawTarget,
+                       const uint8_t *aText,
+                       uint32_t    aLength,
+                       uint32_t    aHash,
+                       Script      aRunScript,
+                       bool        aVertical,
+                       int32_t     aAppUnitsPerDevUnit,
+                       gfx::ShapedTextFlags aFlags,
+                       RoundingFlags aRounding,
+                       gfxTextPerfMetrics *aTextPerf);
+
 bool
 gfxFont::CacheHashEntry::KeyEquals(const KeyTypePointer aKey) const
 {
     const gfxShapedWord* sw = mShapedWord.get();
     if (!sw) {
         return false;
     }
     if (sw->GetLength() != aKey->mLength ||