From 926d1bdddc1913eb88bdc68fd79a6449550bcdef Mon Sep 17 00:00:00 2001 From: Simon Montagu Date: Sat, 26 Jan 2013 23:35:49 -0800 Subject: [PATCH] Clear the HasDirAuto and HasDirAutoSet flags when setting dir to an invalid value. Bug 831287, r=ehsan --- content/html/content/src/nsGenericHTMLElement.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/html/content/src/nsGenericHTMLElement.cpp b/content/html/content/src/nsGenericHTMLElement.cpp index 5e51b62ca17..7f0f2d48ab2 100644 --- a/content/html/content/src/nsGenericHTMLElement.cpp +++ b/content/html/content/src/nsGenericHTMLElement.cpp @@ -824,6 +824,8 @@ nsGenericHTMLElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName, } else { ClearHasValidDir(); ClearHasFixedDir(); + ClearHasDirAuto(); + ClearHasDirAutoSet(); if (NodeInfo()->Equals(nsGkAtoms::bdi)) { SetHasDirAuto(); } else {