Index: third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.h |
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.h b/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.h |
index 83235bd9f5fba533dd1729106ec10d062b214f44..435fac0644c7ffa64df8c1bb277e7aa5a0a39181 100644 |
--- a/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.h |
+++ b/third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.h |
@@ -45,7 +45,9 @@ public: |
SimpleShaper(const Font*, const TextRun&, const GlyphData* emphasisData = nullptr, |
HashSet<const SimpleFontData*>* fallbackFonts = nullptr, FloatRect* = nullptr); |
- unsigned advance(unsigned to, GlyphBuffer* = 0); |
+ // TODO(sk.kumar): This function should be updated to take an unsigned value, and callers |
+ // should be updated to not pass negative values. See: crbug.com/540047. |
+ unsigned advance(int to, GlyphBuffer* = 0); |
bool advanceOneCharacter(float& width); |
const TextRun& run() const { return m_textRun; } |