mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 17:25:36 +00:00
Bug 1279690 Part 1 - switch allowReorder should choose the first possible match. r=dholbert
This commit is contained in:
parent
d157959ac1
commit
29a163da7d
@ -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 ||
|
||||
|
Loading…
Reference in New Issue
Block a user