summaryrefslogtreecommitdiff
path: root/waterfox/mozilla-1389436.patch
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2019-01-15 11:59:22 -0500
committerB Stack <bgstack15@gmail.com>2019-01-15 11:59:22 -0500
commit93ec193d01debd136ee7bc0563f77afe3ed22d4e (patch)
treef6be51ea7be86ec05f9ea5bbd5ee212a9b0e36c2 /waterfox/mozilla-1389436.patch
parentMerge branch 'waterfox-bump' into 'master' (diff)
downloadstackrpms-93ec193d01debd136ee7bc0563f77afe3ed22d4e.tar.gz
stackrpms-93ec193d01debd136ee7bc0563f77afe3ed22d4e.tar.bz2
stackrpms-93ec193d01debd136ee7bc0563f77afe3ed22d4e.zip
waterfox ingest PGO fixes from chinfo
Diffstat (limited to 'waterfox/mozilla-1389436.patch')
-rw-r--r--waterfox/mozilla-1389436.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/waterfox/mozilla-1389436.patch b/waterfox/mozilla-1389436.patch
new file mode 100644
index 0000000..b7a87d2
--- /dev/null
+++ b/waterfox/mozilla-1389436.patch
@@ -0,0 +1,41 @@
+
+# HG changeset patch
+# User Mike Hommey <mh+mozilla@glandium.org>
+# Date 1502455819 -32400
+# Node ID 97dae871389b7f22a7096a020781b07a5a61de58
+# Parent c73f64ef71d2d87f36008f5ff661f4050692bd06
+Bug 1389436 - Explicitly instantiate gfxFont::GetShapedWord<uint8_t> for its use in gfxTextRun.cpp. r=jfkthame
+
+diff --git a/gfx/thebes/gfxFont.cpp b/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 ||
+
bgstack15