Backout bug 750551 because of reftest oranges

--HG--
extra : rebase_source : 8947487094a48fb53c50a3c47bdc053db63a7759
This commit is contained in:
Ehsan Akhgari 2012-05-07 12:34:37 -04:00
parent 3680bd1f80
commit e00b9cd4fb
4 changed files with 7 additions and 41 deletions

View File

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<body dir="ltr">
<p>1
<p>2
<p>3
<style>
body {
display: -moz-box;
-moz-box-orient: vertical;
}
</style>
</body>
</html>

View File

@ -1,14 +0,0 @@
<!DOCTYPE html>
<html>
<body dir="rtl">
<p>1
<p>2
<p>3
<style>
body {
display: -moz-box;
-moz-box-orient: vertical;
}
</style>
</body>
</html>

View File

@ -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

View File

@ -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];
}
}