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

Unified Diff: third_party/WebKit/Source/platform/fonts/shaping/SimpleShaper.h

Issue 1394833002: Find In Page doesn't correctly highlight wrapped text. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: 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; }

Powered by Google App Engine
This is Rietveld 408576698