Bug 1279690 Part 1 - switch allowReorder should choose the first possible match. r=dholbert

This commit is contained in:
Robert Longson 2016-06-23 05:53:35 +01:00
parent d157959ac1
commit 29a163da7d

View File

@ -160,8 +160,10 @@ SVGSwitchElement::FindActiveChild() const
break;
case -2:
// no systemLanguage attribute. If there's nothing better
// we'll use the last such child.
defaultChild = child;
// we'll use the first such child.
if (!defaultChild) {
defaultChild = child;
}
break;
default:
if (bestLanguagePreferenceRank == -1 ||