gecko-dev/gfx/thebes
Xidorn Quan f62e2a947a Bug 1406552 - Only update max ascent / descent with em ones when ascent and descent are zero. r=jfkthame
The original code was added in bug 385263 for fixing bug 279032 that a
single font provides zero for max ascent / descent in its HHEA table
which caused Firefox to crash.

Unconditionally picking the maximum of max ascent / descent and their
em correspondents doesn't seem to be essential for working around that
case, so this patch changes it to just use the em ascent / descent when
both max ascent and descent are zero.

This fixes a webcompat problem related to Roboto font on Linux (and
presumably also Android given it uses FreeType backend as well).

MozReview-Commit-ID: EpKrfiOwnZt

--HG--
extra : rebase_source : 0619abf992fb1e1a1f3068ab172880913ebff1f1
2018-05-03 19:43:46 +10:00
..
CJKCompatSVS.cpp
D3D11Checks.cpp Bug 1434524 - Add more check to D3D11Checks::DoesNV12Work() r=mattwoodrow 2018-02-01 18:00:09 +09:00
D3D11Checks.h Bug 1352016 - P3. Check if NV12 rendering is usable when allocating D3D11 surface. r=mattwoodrow 2017-09-10 17:54:31 +02:00
DeviceManagerDx.cpp Bug 1191971 part 2 - Add capatiblity to enable DComp r=bas 2018-03-29 11:23:31 +09:00
DeviceManagerDx.h Bug 1191971 part 2 - Add capatiblity to enable DComp r=bas 2018-03-29 11:23:31 +09:00
DrawMode.h
PrintTarget.cpp Bug 1435286 - Stop recording draw events for reference DrawTargets returned from PrintTarget. r=bobowen 2018-01-18 12:45:18 +00:00
PrintTarget.h Bug 1435286 - Stop recording draw events for reference DrawTargets returned from PrintTarget. r=bobowen 2018-01-18 12:45:18 +00:00
PrintTargetCG.h Bug 1436263 - Part 3: Remove `virtual` from final virtual function declarations. r=froydnj 2018-02-08 21:22:43 -08:00
PrintTargetCG.mm Bug 1435286 - Stop recording draw events for reference DrawTargets returned from PrintTarget. r=bobowen 2018-01-18 12:45:18 +00:00
PrintTargetEMF.cpp Bug 1435286 - Stop recording draw events for reference DrawTargets returned from PrintTarget. r=bobowen 2018-01-18 12:45:18 +00:00
PrintTargetEMF.h Bug 1436263 - Part 1: Replace `final override` virtual function specifiers with just `final`. r=froydnj 2018-02-05 22:46:57 -08:00
PrintTargetPDF.cpp
PrintTargetPDF.h
PrintTargetPS.cpp
PrintTargetPS.h
PrintTargetRecording.cpp Bug 1369552. Split out DrawTargetWrapAndRecord and DrawTargetRecording. r=Bas 2017-06-12 16:52:29 -04:00
PrintTargetRecording.h Bug 1369552. Split out DrawTargetWrapAndRecord and DrawTargetRecording. r=Bas 2017-06-12 16:52:29 -04:00
PrintTargetSkPDF.cpp Backed out 4 changesets (bug 525063) on request from Andi. a=backout 2018-04-13 16:01:28 +03:00
PrintTargetSkPDF.h Bug 1436263 - Part 3: Remove `virtual` from final virtual function declarations. r=froydnj 2018-02-08 21:22:43 -08:00
PrintTargetThebes.cpp Bug 1435286 - Stop recording draw events for reference DrawTargets returned from PrintTarget. r=bobowen 2018-01-18 12:45:18 +00:00
PrintTargetThebes.h Bug 1436263 - Part 3: Remove `virtual` from final virtual function declarations. r=froydnj 2018-02-08 21:22:43 -08:00
PrintTargetWindows.cpp Bug 499025 - Don't open an error pop-up if the user cancels printing. r=bobowen 2018-02-06 20:14:47 +00:00
PrintTargetWindows.h
RoundedRect.h Bug 1423570: Use BaseRect access methods instead of member variables in gfx/ r=bas.schouten 2017-12-19 15:48:39 -05:00
SoftwareVsyncSource.cpp Bug 1372405 - Provide names for all runnables in the tree (r=froydnj) 2017-06-26 14:19:58 -07:00
SoftwareVsyncSource.h
VsyncSource.cpp
VsyncSource.h
cairo-xlib-utils.h
d3dkmtQueryStatistics.h
genLanguageTagList.pl
gencjkcisvs.py
gfx2DGlue.h Bug 1423570: Use BaseRect access methods instead of member variables in gfx/ r=bas.schouten 2017-12-19 15:48:39 -05:00
gfxASurface.cpp Bug 1356317: Part 1 - Mark SurfaceMemoryReporter refcounting as threadsafe. r=njn 2017-05-29 22:04:30 -07:00
gfxASurface.h Bug 1377169 - Turn gfxRect into a typedef. r=jrmuizel 2017-07-05 11:22:00 -04:00
gfxAlphaRecovery.cpp
gfxAlphaRecovery.h
gfxAlphaRecoverySSE2.cpp Bug 1423570: Use BaseRect access methods instead of member variables in gfx/ r=bas.schouten 2017-12-19 15:48:39 -05:00
gfxAndroidPlatform.cpp Bug 1436263 - Part 1: Replace `final override` virtual function specifiers with just `final`. r=froydnj 2018-02-05 22:46:57 -08:00
gfxAndroidPlatform.h Bug 1451296 - Make enabling of font-variation-settings and font-optical-sizing properties dependent on adequate platform support at runtime. r=lsalzman 2018-04-05 18:53:56 +01:00
gfxBaseSharedMemorySurface.cpp
gfxBaseSharedMemorySurface.h
gfxBlur.cpp Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj 2017-11-05 19:37:28 -08:00
gfxBlur.h Bug 1365876. Blur text shadows on the CPU. r=lsalzman 2017-07-24 13:48:14 -07:00
gfxColor.h
gfxContext.cpp Bug 1447834. Remove gfxContext::CurrentPoint. r=mstange 2018-03-21 18:54:32 -04:00
gfxContext.h Bug 1457154 - use fallback for color glyphs with transparency in WR. r=gankro 2018-05-03 22:53:55 -04:00
gfxCoreTextShaper.cpp Bug 1455569 - Handle variation settings of system-installed variation fonts when creating CTFont from CGFont on High Sierra. r=lsalzman 2018-04-20 17:18:03 +01:00
gfxCoreTextShaper.h Bug 1430820 - Cache any required feature-modified Core Text font instances in gfxCoreTextShaper, rather than re-creating them for each shaping call. r=jrmuizel 2018-03-29 21:53:55 +01:00
gfxDWriteCommon.cpp Bug 1451878 - Add memory reporting for gfxDWriteFontFileLoader. r=lsalzman 2018-04-06 12:44:07 -04:00
gfxDWriteCommon.h Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt 2018-04-23 18:22:05 +02:00
gfxDWriteFontList.cpp Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxDWriteFontList.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxDWriteFonts.cpp Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxDWriteFonts.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxDrawable.cpp Bug 1423570: Use BaseRect access methods instead of member variables in gfx/ r=bas.schouten 2017-12-19 15:48:39 -05:00
gfxDrawable.h Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj 2017-11-05 19:37:28 -08:00
gfxEnv.h Bug 1390401 - Fix typo of ENABLE_WR_RENDERING to ENABLE_WR_RECORDING. r=mtseng 2017-08-15 15:40:55 +08:00
gfxFT2FontBase.cpp Bug 1406552 - Only update max ascent / descent with em ones when ascent and descent are zero. r=jfkthame 2018-05-03 19:43:46 +10:00
gfxFT2FontBase.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxFT2FontList.cpp Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxFT2FontList.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxFT2Fonts.cpp Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxFT2Fonts.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxFT2Utils.cpp Bug 1457103 - patch 2 - Refactor logic from gfxFontconfigFontEntry implementations of GetVariationAxes and GetVariationInstances to gfxFT2Utils, where it can be shared by the gfxFT2Fonts backend. r=jwatt 2018-04-26 17:08:18 +01:00
gfxFT2Utils.h Bug 1457103 - patch 2 - Refactor logic from gfxFontconfigFontEntry implementations of GetVariationAxes and GetVariationInstances to gfxFT2Utils, where it can be shared by the gfxFT2Fonts backend. r=jwatt 2018-04-26 17:08:18 +01:00
gfxFailure.h
gfxFcPlatformFontList.cpp Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxFcPlatformFontList.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxFont.cpp Bug 1457154 - use fallback for color glyphs with transparency in WR. r=gankro 2018-05-03 22:53:55 -04:00
gfxFont.h Bug 1449605 - part 2 - Rename gfxFontEntry::IsBold() to SupportsBold() and make it smarter about variable fonts, to avoid inappropriate use of synthetic-bold effect. r=jwatt 2018-05-04 10:19:55 +01:00
gfxFontConstants.h Bug 1452973 - Update NS_FONT_STRETCH_* constants to values based on the percentage definitions in css fonts 4. r=jwatt 2018-04-16 10:00:57 +01:00
gfxFontEntry.cpp Bug 1459158 - Don't apply variation values from CSS font-weight/font-stretch properties if the font's variation axes appear to use a non-CSS-like scale. r=jwatt 2018-05-04 17:36:01 +01:00
gfxFontEntry.h Bug 1459158 - Don't apply variation values from CSS font-weight/font-stretch properties if the font's variation axes appear to use a non-CSS-like scale. r=jwatt 2018-05-04 17:36:01 +01:00
gfxFontFamilyList.h Backed out 4 changesets (bug 525063) on request from Andi. a=backout 2018-04-13 16:01:28 +03:00
gfxFontFeatures.cpp Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn 2017-08-23 18:05:53 -07:00
gfxFontFeatures.h Bug 1355721 - stylo: Implement font feature values lookup r=emilio,xidorn 2017-08-23 18:05:53 -07:00
gfxFontInfoLoader.cpp Bug 1436902 part 3. Replace usage of NS_IMPL_ISUPPORTS_INHERITED0 with NS_INLINE_DECL_REFCOUNTING_INHERITED when possible. r=mccr8 2018-02-12 15:44:40 -05:00
gfxFontInfoLoader.h Backed out 4 changesets (bug 525063) on request from Andi. a=backout 2018-04-13 16:01:28 +03:00
gfxFontMissingGlyphs.cpp Bug 1400917 - render missing glyphs with WebRender. r=gankro 2018-01-18 16:10:14 -05:00
gfxFontMissingGlyphs.h Bug 1400917 - render missing glyphs with WebRender. r=gankro 2018-01-18 16:10:14 -05:00
gfxFontPrefLangList.h
gfxFontSrcPrincipal.cpp Backed out 22 changesets (bug 1399787) for shutdown leaks on windows 7 debug tc-M without e10s r=backout on a CLOSED TREE 2017-12-08 13:09:56 +02:00
gfxFontSrcPrincipal.h Bug 1376964 - Part 8: Add OMT wrapper for nsIPrincipals useful for font stuff. r=jfkthame 2017-07-08 17:20:28 +08:00
gfxFontSrcURI.cpp Bug 1350958 - Finish labeling ProxyReleaseEvent, r=billm 2017-07-14 08:49:22 +02:00
gfxFontSrcURI.h Bug 1376964 - Part 5: Add OMT wrapper for nsIURIs useful for font stuff. r=jfkthame 2017-07-07 17:29:44 +08:00
gfxFontUtils.cpp Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt 2018-04-25 07:18:23 +01:00
gfxFontUtils.h Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt 2018-04-25 07:18:23 +01:00
gfxFontVariations.h Bug 1435984 - patch 5 - Apply variation settings from the font entry when instantiating fonts on macOS. r=lsalzman 2018-02-14 22:02:05 +11:00
gfxGDIFont.cpp Bug 1458218 - Rename gfxGDIFont::mNeedsBold to mNeedsSyntheticBold. r=jfkthame 2018-04-26 12:46:18 +01:00
gfxGDIFont.h Bug 1458218 - Rename gfxGDIFont::mNeedsBold to mNeedsSyntheticBold. r=jfkthame 2018-04-26 12:46:18 +01:00
gfxGDIFontList.cpp Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxGDIFontList.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxGdkNativeRenderer.cpp Bug 1278282 - Remove the 'MOZ_WIDGET_GTK == 2' defines r=karlt,lsalzman 2018-01-10 08:52:04 +01:00
gfxGdkNativeRenderer.h Bug 1278282 - Remove the 'MOZ_WIDGET_GTK == 2' defines r=karlt,lsalzman 2018-01-10 08:52:04 +01:00
gfxGlyphExtents.cpp
gfxGlyphExtents.h Backed out 4 changesets (bug 525063) on request from Andi. a=backout 2018-04-13 16:01:28 +03:00
gfxGradientCache.cpp Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj 2017-11-05 19:37:28 -08:00
gfxGradientCache.h
gfxGraphiteShaper.cpp Backed out 4 changesets (bug 525063) on request from Andi. a=backout 2018-04-13 16:01:28 +03:00
gfxGraphiteShaper.h Bug 1377328 - part 2 - Annotate raw pointers used for refcounted objects in font-related code. r=milan 2017-06-29 17:52:43 -07:00
gfxHarfBuzzShaper.cpp Backed out 4 changesets (bug 525063) on request from Andi. a=backout 2018-04-13 16:01:28 +03:00
gfxHarfBuzzShaper.h Bug 1438674 - For non-OpenType/TrueType fonts, use synthesized glyph origin & advance for vertical shaping, rather than just refusing to use the font. r=dholbert 2018-02-16 12:40:43 +00:00
gfxImageSurface.cpp Backed out 4 changesets (bug 525063) on request from Andi. a=backout 2018-04-13 16:01:28 +03:00
gfxImageSurface.h
gfxLanguageTagList.cpp
gfxLineSegment.h
gfxMacFont.cpp Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxMacFont.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxMacPlatformFontList.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxMacPlatformFontList.mm Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxMathTable.cpp Backed out 4 changesets (bug 525063) on request from Andi. a=backout 2018-04-13 16:01:28 +03:00
gfxMathTable.h
gfxMatrix.h Bug 1377090 - Turn gfxMatrix into a typedef for MatrixDouble. r=jrmuizel 2017-07-05 11:18:49 -04:00
gfxPattern.cpp Remove implicit fuzzy operator== from BaseMatrix (bug 1435406, r=mattwoodrow) 2018-02-02 15:14:08 -06:00
gfxPattern.h Bug 1379404 - Part 4. Prevent unnecessary AzureState copy in GlyphBufferAzure::Flush. r=mattwoodrow 2017-07-09 00:49:24 +08:00
gfxPlatform.cpp Bug 1455696: gfx.webrender.all.qualified preference to default to WR for non-blocked devices/hardware. gfx.webrender.all will still force it on. r=milan 2018-05-03 13:02:00 +03:00
gfxPlatform.h Bug 1457007 - Add about:support information on if tiling is used in the content process. r=nical 2018-04-30 15:05:19 -05:00
gfxPlatformFontList.cpp Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxPlatformFontList.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxPlatformGtk.cpp Bug 1454598 - part 3 - Use WeightRange more extensively in place of FontWeight throughout user-font handling and font-entry creation, and handle Stretch and SlantStyle similarly. r=jwatt 2018-04-25 07:18:23 +01:00
gfxPlatformGtk.h Bug 1454598 - part 3 - Use WeightRange more extensively in place of FontWeight throughout user-font handling and font-entry creation, and handle Stretch and SlantStyle similarly. r=jwatt 2018-04-25 07:18:23 +01:00
gfxPlatformMac.cpp Bug 1457007 - Add about:support information on if tiling is used in the content process. r=nical 2018-04-30 15:05:19 -05:00
gfxPlatformMac.h Bug 1457007 - Add about:support information on if tiling is used in the content process. r=nical 2018-04-30 15:05:19 -05:00
gfxPoint.h Bug 1376782 - Replace gfxPoint with a typedef to PointDouble. r=jrmuizel 2017-06-28 11:42:23 -04:00
gfxPrefs.cpp Bug 1402041 - Move most of the GetSingleton() body to a separate function to make the inline size smaller. r=kats 2017-11-21 21:45:55 -05:00
gfxPrefs.h Bug 1455696: gfx.webrender.all.qualified preference to default to WR for non-blocked devices/hardware. gfx.webrender.all will still force it on. r=milan 2018-05-03 13:02:00 +03:00
gfxQuad.h
gfxQuartzNativeDrawing.cpp Implement record and replay painting for multi tiled layers (bug 1422392, r=nical) 2017-11-21 19:12:14 -05:00
gfxQuartzNativeDrawing.h
gfxQuartzSurface.cpp
gfxQuartzSurface.h
gfxQuaternion.h
gfxRect.h Bug 1377169 - Turn gfxRect into a typedef. r=jrmuizel 2017-07-05 11:22:00 -04:00
gfxSVGGlyphs.cpp Bug 1455885: Make the SVG context paint not use a node property, but a member in SVGDocument. r=jwatt 2018-04-26 17:07:39 +02:00
gfxSVGGlyphs.h Bug 1377328 - part 2 - Annotate raw pointers used for refcounted objects in font-related code. r=milan 2017-06-29 17:52:43 -07:00
gfxScriptItemizer.cpp
gfxScriptItemizer.h
gfxSharedImageSurface.h
gfxSkipChars.cpp
gfxSkipChars.h Backed out 4 changesets (bug 525063) on request from Andi. a=backout 2018-04-13 16:01:28 +03:00
gfxTextRun.cpp Bug 1457154 - use fallback for color glyphs with transparency in WR. r=gankro 2018-05-03 22:53:55 -04:00
gfxTextRun.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxTypes.h
gfxUserFontSet.cpp Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxUserFontSet.h Bug 1449605 - part 1 - Rearrange thebes font code so that the decision whether to apply synthetic-bold is deferred until actually instantiating a font, not made during the font-matching process. r=jwatt 2018-05-01 10:30:50 +01:00
gfxUtils.cpp Bug 1444430 - Extend the API of gfxUtils::EncodeSourceSurface to support encoding into a string. r=jrmuizel 2018-04-12 15:20:14 -04:00
gfxUtils.h Bug 1444430 - Extend the API of gfxUtils::EncodeSourceSurface to support encoding into a string. r=jrmuizel 2018-04-12 15:20:14 -04:00
gfxWindowsNativeDrawing.cpp Bug 1416267 - Update gfxContext matrix functions to avoid flip-flopping between float and double matrices. r=jrmuizel 2017-11-10 21:14:09 -05:00
gfxWindowsNativeDrawing.h
gfxWindowsPlatform.cpp Bug 1457007 - Add about:support information on if tiling is used in the content process. r=nical 2018-04-30 15:05:19 -05:00
gfxWindowsPlatform.h Bug 1457007 - Add about:support information on if tiling is used in the content process. r=nical 2018-04-30 15:05:19 -05:00
gfxWindowsSurface.cpp
gfxWindowsSurface.h
gfxXlibNativeRenderer.cpp Bug 1416267 - Update gfxContext matrix functions to avoid flip-flopping between float and double matrices. r=jrmuizel 2017-11-10 21:14:09 -05:00
gfxXlibNativeRenderer.h
gfxXlibSurface.cpp Protect D2D singletons with a mutex. (bug 1380922 part 2, r=mchang) 2017-07-18 12:15:44 -07:00
gfxXlibSurface.h
moz.build Bug 1191971 part 2 - Add capatiblity to enable DComp r=bas 2018-03-29 11:23:31 +09:00
nsUnicodeRange.cpp
nsUnicodeRange.h