зеркало из https://github.com/mozilla/gecko-dev.git
Bug 708963 - Remove tautological comparison (unsigned int >= 0) in gfxFont.h. r=jmuizelaar
--HG-- extra : rebase_source : 1562649cfe16bbfeeacad6b53ba53f50c58fa2b0
This commit is contained in:
Родитель
a157c1d76d
Коммит
d6b67e278e
|
@ -1466,20 +1466,20 @@ public:
|
|||
// Public textrun API for general use
|
||||
|
||||
bool IsClusterStart(PRUint32 aPos) {
|
||||
NS_ASSERTION(0 <= aPos && aPos < mCharacterCount, "aPos out of range");
|
||||
NS_ASSERTION(aPos < mCharacterCount, "aPos out of range");
|
||||
return mCharacterGlyphs[aPos].IsClusterStart();
|
||||
}
|
||||
bool IsLigatureGroupStart(PRUint32 aPos) {
|
||||
NS_ASSERTION(0 <= aPos && aPos < mCharacterCount, "aPos out of range");
|
||||
NS_ASSERTION(aPos < mCharacterCount, "aPos out of range");
|
||||
return mCharacterGlyphs[aPos].IsLigatureGroupStart();
|
||||
}
|
||||
bool CanBreakLineBefore(PRUint32 aPos) {
|
||||
NS_ASSERTION(0 <= aPos && aPos < mCharacterCount, "aPos out of range");
|
||||
NS_ASSERTION(aPos < mCharacterCount, "aPos out of range");
|
||||
return mCharacterGlyphs[aPos].CanBreakBefore() ==
|
||||
CompressedGlyph::FLAG_BREAK_TYPE_NORMAL;
|
||||
}
|
||||
bool CanHyphenateBefore(PRUint32 aPos) {
|
||||
NS_ASSERTION(0 <= aPos && aPos < mCharacterCount, "aPos out of range");
|
||||
NS_ASSERTION(aPos < mCharacterCount, "aPos out of range");
|
||||
return mCharacterGlyphs[aPos].CanBreakBefore() ==
|
||||
CompressedGlyph::FLAG_BREAK_TYPE_HYPHEN;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче