From 644bc5ddde43e31d112daefe480ff6d7dffbc1d2 Mon Sep 17 00:00:00 2001 From: Simon Montagu Date: Mon, 15 Apr 2013 23:14:40 +0300 Subject: [PATCH] Remove unnecessary calls to ClearHasDirAutoSet in AfterSetAttr, Bug 861607, r=ehsan --- content/html/content/src/nsGenericHTMLElement.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/content/html/content/src/nsGenericHTMLElement.cpp b/content/html/content/src/nsGenericHTMLElement.cpp index 0d290bc153ef..80d987276543 100644 --- a/content/html/content/src/nsGenericHTMLElement.cpp +++ b/content/html/content/src/nsGenericHTMLElement.cpp @@ -800,7 +800,6 @@ nsGenericHTMLElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName, dir = dirValue; SetDirectionality(dir, aNotify); ClearHasDirAuto(); - ClearHasDirAutoSet(); SetHasFixedDir(); } } else { @@ -810,7 +809,6 @@ nsGenericHTMLElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName, SetHasDirAuto(); } else { ClearHasDirAuto(); - ClearHasDirAutoSet(); dir = RecomputeDirectionality(this, aNotify); } }