Bug 1098551: Use nsBidiLevel (instead of uint8_t) to capture result of functions that return nsBidiLevel. r=smontagu

This commit is contained in:
Daniel Holbert 2014-11-13 14:53:17 -08:00
Родитель b18906567e
Коммит 009f262d50
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -358,7 +358,7 @@ struct BidiLineData {
frame && aNumFramesOnLine--; frame && aNumFramesOnLine--;
frame = frame->GetNextSibling()) { frame = frame->GetNextSibling()) {
AppendFrame(frame); AppendFrame(frame);
uint8_t level = nsBidiPresUtils::GetFrameEmbeddingLevel(frame); nsBidiLevel level = nsBidiPresUtils::GetFrameEmbeddingLevel(frame);
mLevels.AppendElement(level); mLevels.AppendElement(level);
mIndexMap.AppendElement(0); mIndexMap.AppendElement(0);
if (level & 1) { if (level & 1) {
@ -658,7 +658,7 @@ nsBidiPresUtils::ResolveParagraph(nsBlockFrame* aBlockFrame,
nsresult rv = aBpd->SetPara(); nsresult rv = aBpd->SetPara();
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);
uint8_t embeddingLevel = aBpd->GetParaLevel(); nsBidiLevel embeddingLevel = aBpd->GetParaLevel();
rv = aBpd->CountRuns(&runCount); rv = aBpd->CountRuns(&runCount);
NS_ENSURE_SUCCESS(rv, rv); NS_ENSURE_SUCCESS(rv, rv);