Clear the HasDirAuto and HasDirAutoSet flags when setting dir to an invalid value. Bug 831287, r=ehsan

This commit is contained in:
Simon Montagu 2013-01-26 23:35:49 -08:00
parent 50ee1750d8
commit 926d1bdddc

View File

@ -824,6 +824,8 @@ nsGenericHTMLElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName,
} else { } else {
ClearHasValidDir(); ClearHasValidDir();
ClearHasFixedDir(); ClearHasFixedDir();
ClearHasDirAuto();
ClearHasDirAutoSet();
if (NodeInfo()->Equals(nsGkAtoms::bdi)) { if (NodeInfo()->Equals(nsGkAtoms::bdi)) {
SetHasDirAuto(); SetHasDirAuto();
} else { } else {