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

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

Issue 2869893005: Clamp RunInfo::num_characters when shaping ranges with context (Closed)
Patch Set: Created 3 years, 7 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/ShapeResultTestInfo.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h
index a0f1ae026461c9225dd52a9eae6e2d8334643b56..f95d54301a49133171b962c8b7d23a4401bbd643 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/ShapeResultTestInfo.h
@@ -19,6 +19,11 @@ class PLATFORM_EXPORT ShapeResultTestInfo : public ShapeResult {
unsigned& start_index,
unsigned& num_glyphs,
hb_script_t&) const;
+ bool RunInfoForTesting(unsigned run_index,
+ unsigned& start_index,
+ unsigned& num_characters,
+ unsigned& num_glyphs,
+ hb_script_t&) const;
uint16_t GlyphForTesting(unsigned run_index, size_t glyph_index) const;
float AdvanceForTesting(unsigned run_index, size_t glyph_index) const;
SimpleFontData* FontDataForTesting(unsigned run_index) const;

Powered by Google App Engine
This is Rietveld 408576698