Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1479)

Unified Diff: Source/platform/fonts/shaping/HarfBuzzShaper.cpp

Issue 652483002: TextRun::length() should return an unsigned (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/fonts/shaping/HarfBuzzShaper.cpp
diff --git a/Source/platform/fonts/shaping/HarfBuzzShaper.cpp b/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
index bcf441c52f205f331c6ae205cf4aa08369f9f3f3..cf3a64849a1e544d4c87406e329c6edd00c4bd85 100644
--- a/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
+++ b/Source/platform/fonts/shaping/HarfBuzzShaper.cpp
@@ -445,9 +445,8 @@ void HarfBuzzShaper::setPadding(int padding)
}
-void HarfBuzzShaper::setDrawRange(int from, int to)
+void HarfBuzzShaper::setDrawRange(unsigned from, unsigned to)
{
- ASSERT_WITH_SECURITY_IMPLICATION(from >= 0);
ASSERT_WITH_SECURITY_IMPLICATION(to <= m_run.length());
m_fromIndex = from;
m_toIndex = to;

Powered by Google App Engine
This is Rietveld 408576698