gecko-dev/layout
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
..
base Bug 1458556: Upgrade an assertion to try get a crash earlier and (hopefully) a reproducible test-case. r=xidorn 2018-05-05 12:58:43 +02:00
build Bug 1456471: Remove nsCSSParser.h. r=xidorn 2018-04-25 10:38:37 +02:00
doc Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE 2018-03-22 20:06:24 +01:00
forms Bug 1455674 part 14. Remove use of nsIDOMElement in layout. r=qdot 2018-04-26 23:37:33 -04:00
generic Bug 1458028 - Try also the OverflowList and next-in-flows when searching for the first child frame. r=xidorn 2018-05-05 01:06:57 +02:00
inspector Bug 1457920: Remove ServoStyleSheet usage. r=xidorn 2018-05-02 04:13:26 +02:00
ipc Bug 1456588 part 1. Change nsIFocusManager::SetFocus to take Element. r=enndeakin 2018-04-26 10:37:46 -04:00
mathml Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt 2018-04-23 18:22:05 +02:00
media
painting Bug 1427063: Have D2D interpret colors in premultiplied space. As it says is its default. r=rhunt 2018-04-23 19:27:48 +02:00
printing Bug 1457920: Remove StyleSheet::AsServo. r=xidorn 2018-05-02 04:13:21 +02:00
reftests 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
style Bug 1458814: Remove code that is no longer called. r=hiro 2018-05-05 16:31:20 +02:00
svg Bug 1455674 part 14. Remove use of nsIDOMElement in layout. r=qdot 2018-04-26 23:37:33 -04:00
tables Bug 1455674 part 14. Remove use of nsIDOMElement in layout. r=qdot 2018-04-26 23:37:33 -04:00
tools Bug 1455316 - sometimes when test-verify finds a failure, all future tests are marked as failing also. r=gbrown 2018-05-01 14:04:24 -04:00
xul Bug 1444920, remove the debug='true' flag from xul elements and the corresponding debug frame flags, r=dholbert 2018-05-02 10:32:54 -04:00
moz.build Bug 1417978 - Stop packaging layout debugger on Android. r=nalexander 2018-01-04 15:22:35 -06:00