Clear the HasDirAuto and HasDirAutoSet flags when setting dir to an invalid value. Bug 831287, r=ehsan, a=bajaj
authorSimon Montagu <smontagu@smontagu.org>
Sat, 26 Jan 2013 23:35:49 -0800
changeset 127431 e368c539e1a82dbe43238c30731c52f6240461b6
parent 127430 6008ec29e703f3f1e2d9f60ad3681a7c2c79b016
child 127432 8516612e2d80856e809f8e554f4f6566593dea77
push id2151
push userlsblakk@mozilla.com
push dateTue, 19 Feb 2013 18:06:57 +0000
treeherdermozilla-beta@4952e88741ec [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersehsan, bajaj
bugs831287
milestone20.0a2
Clear the HasDirAuto and HasDirAutoSet flags when setting dir to an invalid value. Bug 831287, r=ehsan, a=bajaj
content/html/content/src/nsGenericHTMLElement.cpp
--- a/content/html/content/src/nsGenericHTMLElement.cpp
+++ b/content/html/content/src/nsGenericHTMLElement.cpp
@@ -820,16 +820,18 @@ nsGenericHTMLElement::AfterSetAttr(int32
           SetDirectionality(dir, aNotify);
           ClearHasDirAuto();
           ClearHasDirAutoSet();
           SetHasFixedDir();
         }
       } else {
         ClearHasValidDir();
         ClearHasFixedDir();
+        ClearHasDirAuto();
+        ClearHasDirAutoSet();
         if (NodeInfo()->Equals(nsGkAtoms::bdi)) {
           SetHasDirAuto();
         } else {
           dir = RecomputeDirectionality(this, aNotify);
         }
       }
       SetDirectionalityOnDescendants(this, dir, aNotify);
     }