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

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

Issue 2686503003: Add support for shaping a substring to HarfBuzzShaper (Closed)
Patch Set: Cleanup comments and adjust tolerance Created 3 years, 10 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/RunSegmenter.h
diff --git a/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.h b/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.h
index 19b1b6bf3f2d653620e61dd3709bc6a5d7106d52..00ae00d911599dc0763a0847c570ee9a18da2123 100644
--- a/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.h
+++ b/third_party/WebKit/Source/platform/fonts/shaping/RunSegmenter.h
@@ -41,6 +41,11 @@ class PLATFORM_EXPORT RunSegmenter {
bool consume(RunSegmenterRange*);
+ static RunSegmenterRange nullRange() {
+ return {0, 0, USCRIPT_INVALID_CODE, OrientationIterator::OrientationKeep,
+ FontFallbackPriority::Text};
+ }
+
private:
void consumeOrientationIteratorPastLastSplit();
void consumeScriptIteratorPastLastSplit();

Powered by Google App Engine
This is Rietveld 408576698