summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_shaper.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_shaper.cc')
-rw-r--r--chromium/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_shaper.cc20
1 files changed, 10 insertions, 10 deletions
diff --git a/chromium/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_shaper.cc b/chromium/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_shaper.cc
index c919c686aa6..24f0d3c4c40 100644
--- a/chromium/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_shaper.cc
+++ b/chromium/third_party/blink/renderer/platform/fonts/shaping/harfbuzz_shaper.cc
@@ -319,7 +319,7 @@ void HarfBuzzShaper::CommitGlyphs(RangeData* range_data,
const SimpleFontData* current_font,
UScriptCode current_run_script,
CanvasRotationInVertical canvas_rotation,
- bool is_last_resort,
+ bool is_last_font,
const BufferSlice& slice,
ShapeResult* shape_result) const {
hb_direction_t direction = range_data->HarfBuzzDirection(canvas_rotation);
@@ -346,7 +346,7 @@ void HarfBuzzShaper::CommitGlyphs(RangeData* range_data,
current_slice->num_glyphs - num_glyphs_inserted};
current_slice = &next_slice;
}
- if (is_last_resort)
+ if (is_last_font)
range_data->font->ReportNotDefGlyph();
}
@@ -357,7 +357,7 @@ void HarfBuzzShaper::ExtractShapeResults(
const SimpleFontData* current_font,
UScriptCode current_run_script,
CanvasRotationInVertical canvas_rotation,
- bool is_last_resort,
+ bool is_last_font,
ShapeResult* shape_result) const {
enum ClusterResult { kShaped, kNotDef, kUnknown };
ClusterResult current_cluster_result = kUnknown;
@@ -397,7 +397,7 @@ void HarfBuzzShaper::ExtractShapeResults(
// If the most recent cluster is shaped and there is a state change,
// it means the previous ones were unshaped, so we queue them, unless
// we're using the last resort font.
- if (current_cluster_result == kShaped && !is_last_resort) {
+ if (current_cluster_result == kShaped && !is_last_font) {
QueueCharacters(range_data, current_font, font_cycle_queued, slice);
} else {
// If the most recent cluster is unshaped and there is a state
@@ -405,7 +405,7 @@ void HarfBuzzShaper::ExtractShapeResults(
// the glyphs. We also commit when we've reached the last resort
// font.
CommitGlyphs(range_data, current_font, current_run_script,
- canvas_rotation, is_last_resort, slice, shape_result);
+ canvas_rotation, is_last_font, slice, shape_result);
}
last_change_glyph_index = previous_cluster_start_glyph_index;
}
@@ -427,7 +427,7 @@ void HarfBuzzShaper::ExtractShapeResults(
// End of the run.
if (current_cluster_result != previous_cluster_result &&
- previous_cluster_result != kUnknown && !is_last_resort) {
+ previous_cluster_result != kUnknown && !is_last_font) {
// The last cluster in the run still had shaping status different from
// the cluster(s) before it, we need to submit one shaped and one
// unshaped segment.
@@ -440,13 +440,13 @@ void HarfBuzzShaper::ExtractShapeResults(
ComputeSlice(range_data, current_queue_item, glyph_info, num_glyphs,
previous_cluster_start_glyph_index, num_glyphs);
CommitGlyphs(range_data, current_font, current_run_script,
- canvas_rotation, is_last_resort, slice, shape_result);
+ canvas_rotation, is_last_font, slice, shape_result);
} else {
BufferSlice slice = ComputeSlice(
range_data, current_queue_item, glyph_info, num_glyphs,
last_change_glyph_index, previous_cluster_start_glyph_index);
CommitGlyphs(range_data, current_font, current_run_script,
- canvas_rotation, is_last_resort, slice, shape_result);
+ canvas_rotation, is_last_font, slice, shape_result);
slice =
ComputeSlice(range_data, current_queue_item, glyph_info, num_glyphs,
previous_cluster_start_glyph_index, num_glyphs);
@@ -458,11 +458,11 @@ void HarfBuzzShaper::ExtractShapeResults(
BufferSlice slice =
ComputeSlice(range_data, current_queue_item, glyph_info, num_glyphs,
last_change_glyph_index, num_glyphs);
- if (current_cluster_result == kNotDef && !is_last_resort) {
+ if (current_cluster_result == kNotDef && !is_last_font) {
QueueCharacters(range_data, current_font, font_cycle_queued, slice);
} else {
CommitGlyphs(range_data, current_font, current_run_script,
- canvas_rotation, is_last_resort, slice, shape_result);
+ canvas_rotation, is_last_font, slice, shape_result);
}
}
}