Bug 1232665 - initialize class members: mLastPrefLang and mLastPrefFirstFont. r=jfkthame
authorBogdan Postelnicu <bogdan.postelnicu>
Tue, 15 Dec 2015 06:58:00 +0100
changeset 277461 3f06ed0dd63583447ac808a709f8f7515bfb1ecc
parent 277460 39458daa71623f681eacd32e8adfaf0618e057f0
child 277462 631fef632ea8e620964b5c338c10c8a178cff3e8
push id29823
push userryanvm@gmail.com
push dateSat, 26 Dec 2015 01:16:54 +0000
treeherdermozilla-central@691f2e687e46 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjfkthame
bugs1232665
milestone46.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1232665 - initialize class members: mLastPrefLang and mLastPrefFirstFont. r=jfkthame
gfx/thebes/gfxTextRun.cpp
--- a/gfx/thebes/gfxTextRun.cpp
+++ b/gfx/thebes/gfxTextRun.cpp
@@ -1563,17 +1563,19 @@ gfxFontGroup::gfxFontGroup(const FontFam
                            gfxFloat aDevToCssSize)
     : mFamilyList(aFontFamilyList)
     , mStyle(*aStyle)
     , mUnderlineOffset(UNDERLINE_OFFSET_NOT_SET)
     , mHyphenWidth(-1)
     , mDevToCssSize(aDevToCssSize)
     , mUserFontSet(aUserFontSet)
     , mTextPerf(aTextPerf)
+    , mLastPrefLang(eFontPrefLang_Western)
     , mPageLang(gfxPlatformFontList::GetFontPrefLangFor(aStyle->language))
+    , mLastPrefFirstFont(false)
     , mSkipDrawing(false)
     , mSkipUpdateUserFonts(false)
 {
     // We don't use SetUserFontSet() here, as we want to unconditionally call
     // BuildFontList() rather than only do UpdateUserFonts() if it changed.
     mCurrGeneration = GetGeneration();
     BuildFontList();
 }