Bug 1173415 - Fix incorrect mask used for nsBidi::mFlags [r=smontagu]

LRI and RLI are values of type DirProp (uint8_t).  The DIRPROP_FLAG macro is
needed to convert them to bits in the 32-bit `flags` variable.
This commit is contained in:
Matt Brubeck 2015-06-11 10:10:48 -07:00
parent 2ca5ed0f1f
commit 67b4ace7f4

View File

@ -505,7 +505,7 @@ void nsBidi::GetDirProps(const char16_t *aText)
} else if (state == SEEKING_STRONG_FOR_FSI) {
if (stackLast <= NSBIDI_MAX_EXPLICIT_LEVEL) {
dirProps[isolateStartStack[stackLast]] = LRI;
flags |= LRI;
flags |= DIRPROP_FLAG(LRI);
}
state = LOOKING_FOR_PDI;
}
@ -518,7 +518,7 @@ void nsBidi::GetDirProps(const char16_t *aText)
} else if (state == SEEKING_STRONG_FOR_FSI) {
if (stackLast <= NSBIDI_MAX_EXPLICIT_LEVEL) {
dirProps[isolateStartStack[stackLast]] = RLI;
flags |= RLI;
flags |= DIRPROP_FLAG(RLI);
}
state = LOOKING_FOR_PDI;
}