Index: third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp |
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp |
index 389ae19f4b87e7333c23d3686e145ad8b9addb5c..3685991a434e05f2c95c6f13cd8e1020877cbeab 100644 |
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultBuffer.cpp |
@@ -205,7 +205,7 @@ float ShapeResultBuffer::fillGlyphBuffer(GlyphBuffer* glyphBuffer, const TextRun |
unsigned from, unsigned to) const |
{ |
// Fast path: full run with no vertical offsets |
- if (!from && to == static_cast<unsigned>(textRun.length()) && !hasVerticalOffsets()) |
+ if (!from && to == textRun.length() && !hasVerticalOffsets()) |
return fillFastHorizontalGlyphBuffer(glyphBuffer, textRun.direction()); |
float advance = 0; |