Don't clear HasDirAutoSet on a <bdi>. Bug 838489, r=ehsan

This commit is contained in:
Simon Montagu 2013-02-20 22:57:51 -08:00
Родитель 66525abd82
Коммит 38295b7830
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -823,11 +823,11 @@ nsGenericHTMLElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName,
} else {
ClearHasValidDir();
ClearHasFixedDir();
ClearHasDirAuto();
ClearHasDirAutoSet();
if (NodeInfo()->Equals(nsGkAtoms::bdi)) {
SetHasDirAuto();
} else {
ClearHasDirAuto();
ClearHasDirAutoSet();
dir = RecomputeDirectionality(this, aNotify);
}
}