Index: Source/platform/text/BidiResolver.h |
diff --git a/Source/platform/text/BidiResolver.h b/Source/platform/text/BidiResolver.h |
index cc5eb275720c30ebb5ea1db50dd117418916e6d0..ab2211543cb2d3cb82ddf4f8eb1736ba149e30f8 100644 |
--- a/Source/platform/text/BidiResolver.h |
+++ b/Source/platform/text/BidiResolver.h |
@@ -433,7 +433,7 @@ bool BidiResolver<Iterator, Run>::commitExplicitEmbedding() |
level = nextGreaterOddLevel(level); |
else |
level = nextGreaterEvenLevel(level); |
- if (level < 61) |
+ if (level < BidiContext::kMaxLevel) |
toContext = BidiContext::create(level, direction, override, embedding.source(), toContext.get()); |
} |
} |
@@ -497,7 +497,7 @@ inline void BidiResolver<Iterator, Run>::updateStatusLastFromCurrentDirection(WT |
template <class Iterator, class Run> |
inline void BidiResolver<Iterator, Run>::reorderRunsFromLevels() |
{ |
- unsigned char levelLow = 128; |
+ unsigned char levelLow = BidiContext::kMaxLevel; |
unsigned char levelHigh = 0; |
for (Run* run = m_runs.firstRun(); run; run = run->next()) { |
levelHigh = std::max(run->level(), levelHigh); |