commit 0ae26ccccbec874689e5fbda6f30ba27a3c48b96 Author: Mike Perry mikeperry-git@torproject.org Date: Thu Nov 14 00:07:37 2013 -0800
fixup! Limit the number of fonts per document.
Kill signed comparison warnings. --- layout/base/nsPresContext.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/layout/base/nsPresContext.cpp b/layout/base/nsPresContext.cpp index 3cf6628..7d84667 100644 --- a/layout/base/nsPresContext.cpp +++ b/layout/base/nsPresContext.cpp @@ -1417,7 +1417,7 @@ nsPresContext::FontUseCountReached(const nsFont &font) { } }
- if (mFontsUsed.Length() >= mMaxFonts) { + if (mFontsUsed.Length() >= (unsigned)mMaxFonts) { return PR_TRUE; }
@@ -1440,7 +1440,7 @@ nsPresContext::FontAttemptCountReached(const nsFont &font) { } }
- if (mFontsTried.Length() >= mMaxFontAttempts) { + if (mFontsTried.Length() >= (unsigned)mMaxFontAttempts) { return PR_TRUE; }
@@ -1463,7 +1463,7 @@ nsPresContext::AddFontUse(const nsFont &font) { } }
- if (mFontsUsed.Length() >= mMaxFonts) { + if (mFontsUsed.Length() >= (unsigned)mMaxFonts) { return; }
@@ -1487,7 +1487,7 @@ nsPresContext::AddFontAttempt(const nsFont &font) { } }
- if (mFontsTried.Length() >= mMaxFontAttempts) { + if (mFontsTried.Length() >= (unsigned)mMaxFontAttempts) { return; }
tor-commits@lists.torproject.org