Added missing parenthese from patch to bug 303884. bug=330284 r+sr=roc

This commit is contained in:
uriber%gmail.com 2006-03-13 00:00:58 +00:00
Родитель 15fa7e0fb1
Коммит d6054e0451
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -436,7 +436,7 @@ nsFrameList::GetPrevVisualFor(nsIFrame* aFrame) const
if (NS_FAILED(result) || !iter) {
// If the parent is not a block frame, just get the next or prev sibling, depending on block and frame direction.
nsBidiLevel frameEmbeddingLevel = nsBidiPresUtils::GetFrameEmbeddingLevel(aFrame);
if (frameEmbeddingLevel & 1 == baseLevel & 1) {
if ((frameEmbeddingLevel & 1) == (baseLevel & 1)) {
return GetPrevSiblingFor(aFrame);
} else {
return aFrame->GetNextSibling();
@ -499,7 +499,7 @@ nsFrameList::GetNextVisualFor(nsIFrame* aFrame) const
if (NS_FAILED(result) || !iter) {
// If the parent is not a block frame, just get the next or prev sibling, depending on block and frame direction.
nsBidiLevel frameEmbeddingLevel = nsBidiPresUtils::GetFrameEmbeddingLevel(aFrame);
if (frameEmbeddingLevel & 1 == baseLevel & 1) {
if ((frameEmbeddingLevel & 1) == (baseLevel & 1)) {
return aFrame->GetNextSibling();
} else {
return GetPrevSiblingFor(aFrame);