summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h')
-rw-r--r--chromium/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/chromium/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h b/chromium/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h
index c006aefdc5f..86bfc774f28 100644
--- a/chromium/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h
+++ b/chromium/third_party/blink/renderer/platform/fonts/shaping/run_segmenter.h
@@ -39,20 +39,7 @@ class PLATFORM_EXPORT RunSegmenter {
// Initialize a RunSegmenter.
RunSegmenter(const UChar* buffer, unsigned buffer_size, FontOrientation);
- // Returns true if the internal state is past |start|. RunSegmenter is forward
- // incremental that once it's past a point, it cannot be used for text before
- // it. On the ohter hand, if it's not, caller can use the existing instance.
- bool HasProgressedPast(unsigned start) const;
-
- // Returns true if this instance supports the specified FontOrientation.
- bool Supports(FontOrientation) const;
-
- // Advance to the range that includes |start| and return the range. Returns
- // false if there are no such ranges.
- //
- // Callers need to update |start| of the next call to the previous range end
- // when they need next range.
- bool ConsumePast(unsigned start, RunSegmenterRange*);
+ bool Consume(RunSegmenterRange*);
static RunSegmenterRange NullRange() {
return {0, 0, USCRIPT_INVALID_CODE, OrientationIterator::kOrientationKeep,
@@ -63,7 +50,6 @@ class PLATFORM_EXPORT RunSegmenter {
void ConsumeOrientationIteratorPastLastSplit();
void ConsumeScriptIteratorPastLastSplit();
void ConsumeSymbolsIteratorPastLastSplit();
- bool Consume();
unsigned buffer_size_;
RunSegmenterRange candidate_range_;