diff --git a/layout/reftests/bidi/750551-1-ref.html b/layout/reftests/bidi/750551-1-ref.html deleted file mode 100644 index 1e9774967fa6..000000000000 --- a/layout/reftests/bidi/750551-1-ref.html +++ /dev/null @@ -1,14 +0,0 @@ - - -
-1 -
2 -
3 - - - diff --git a/layout/reftests/bidi/750551-1.html b/layout/reftests/bidi/750551-1.html deleted file mode 100644 index 8b94890a1158..000000000000 --- a/layout/reftests/bidi/750551-1.html +++ /dev/null @@ -1,14 +0,0 @@ - - -
-1 -
2 -
3 - - - diff --git a/layout/reftests/bugs/reftest.list b/layout/reftests/bugs/reftest.list index 624b7838f30a..29e805db92f1 100644 --- a/layout/reftests/bugs/reftest.list +++ b/layout/reftests/bugs/reftest.list @@ -1699,5 +1699,4 @@ fuzzy-if(true,1,21) fuzzy-if(cocoaWidget,1,170) fuzzy-if(Android,7,147) == 71852 needs-focus == 731726-1.html 731726-1-ref.html == 735481-1.html 735481-1-ref.html == 745934-1.html 745934-1-ref.html -== 750551-1.html 750551-1-ref.html == 748803-1.html 748803-1-ref.html diff --git a/layout/xul/base/src/nsBoxFrame.cpp b/layout/xul/base/src/nsBoxFrame.cpp index 112261474574..c47604d2ceed 100644 --- a/layout/xul/base/src/nsBoxFrame.cpp +++ b/layout/xul/base/src/nsBoxFrame.cpp @@ -518,18 +518,13 @@ nsBoxFrame::GetInitialDirection(bool& aIsNormal) // Now see if we have an attribute. The attribute overrides // the style system value. - if (IsHorizontal()) { - static nsIContent::AttrValuesArray strings[] = - {&nsGkAtoms::reverse, &nsGkAtoms::ltr, &nsGkAtoms::rtl, nsnull}; - PRInt32 index = GetContent()->FindAttrValueIn(kNameSpaceID_None, nsGkAtoms::dir, - strings, eCaseMatters); - if (index >= 0) { - bool values[] = {!aIsNormal, true, false}; - aIsNormal = values[index]; - } - } else if (GetContent()->AttrValueIs(kNameSpaceID_None, nsGkAtoms::dir, - nsGkAtoms::reverse, eCaseMatters)) { - aIsNormal = !aIsNormal; + static nsIContent::AttrValuesArray strings[] = + {&nsGkAtoms::reverse, &nsGkAtoms::ltr, &nsGkAtoms::rtl, nsnull}; + PRInt32 index = GetContent()->FindAttrValueIn(kNameSpaceID_None, nsGkAtoms::dir, + strings, eCaseMatters); + if (index >= 0) { + bool values[] = {!aIsNormal, true, false}; + aIsNormal = values[index]; } }