зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1098551: Use nsBidiLevel (instead of uint8_t) to capture result of functions that return nsBidiLevel. r=smontagu
This commit is contained in:
Родитель
b18906567e
Коммит
009f262d50
|
@ -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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче