Backed out changeset 3425d772b2ba (bug 935056) for reftest failures.

CLOSED TREE
This commit is contained in:
Ryan VanderMeulen 2014-02-04 11:22:03 -05:00
parent 09b21959a2
commit 631f7129cf
4 changed files with 3 additions and 29 deletions

View File

@ -1,10 +0,0 @@
<!DOCTYPE html>
<meta charset=utf-8>
<style>
p { font: 32px serif; }
text { font: 16px serif; }
</style>
<p>This text should be affected by the minimum font size.</p>
<svg width="800" height="40">
<text x="10" y="20">This text should not be affected by the minimum font size.</text>
</svg>

View File

@ -1,9 +0,0 @@
<!DOCTYPE html>
<meta charset=utf-8>
<style>
p, text { font: 16px serif; }
</style>
<p>This text should be affected by the minimum font size.</p>
<svg width="800" height="40">
<text x="10" y="20">This text should not be affected by the minimum font size.</text>
</svg>

View File

@ -1787,7 +1787,6 @@ fuzzy-if(cocoaWidget,1,40) == 928607-1.html 928607-1-ref.html
== 931853.html 931853-ref.html
== 931853-quirks.html 931853-quirks-ref.html
fuzzy-if(OSX==10.6,2,30) == 933264-1.html 933264-1-ref.html
test-pref(font.minimum-size.x-western,32) == 935056-1.html 935056-1-ref.html
== 936670-1.svg 936670-1-ref.svg
== 941940-1.html 941940-1-ref.html
== 942017.html 942017-ref.html

View File

@ -3677,15 +3677,9 @@ nsRuleNode::SetFont(nsPresContext* aPresContext, nsStyleContext* aContext,
nscoord fontSize = aFont->mSize;
// Enforce the user's specified minimum font-size on the value that we
// expose (but don't change font-size:0, since that would unhide hidden
// text).
//
// We don't do this for SVG text, which we can tell from the value of
// -x-text-zoom. It's safe to look at mAllowZoom on this style struct
// we're computing, since we know -x-text-zoom is only ever specified
// on an <svg:text> element and is inherited otherwise.
if (fontSize > 0 && aFont->mAllowZoom) {
// enforce the user' specified minimum font-size on the value that we expose
// (but don't change font-size:0, since that would unhide hidden text)
if (fontSize > 0) {
nscoord minFontSize = aPresContext->MinFontSize(aFont->mLanguage);
if (minFontSize < 0) {
minFontSize = 0;