| Index: ui/gfx/render_text_harfbuzz.cc
|
| diff --git a/ui/gfx/render_text_harfbuzz.cc b/ui/gfx/render_text_harfbuzz.cc
|
| index c931f22216e57951854e33322a597d7271c4ea37..f34dce7e3fb4d8182d76b59b6244dc06c7a036c8 100644
|
| --- a/ui/gfx/render_text_harfbuzz.cc
|
| +++ b/ui/gfx/render_text_harfbuzz.cc
|
| @@ -1164,6 +1164,9 @@ void RenderTextHarfBuzz::ItemizeTextToRuns(
|
| // Use an empty color BreakList to avoid breaking runs at color boundaries.
|
| BreakList<SkColor> empty_colors;
|
| empty_colors.SetMax(text.length());
|
| + DCHECK_LE(text.size(), baselines().max());
|
| + for (const BreakList<bool>& style : styles())
|
| + DCHECK_LE(text.size(), style.max());
|
| internal::StyleIterator style(empty_colors, baselines(), styles());
|
|
|
| for (size_t run_break = 0; run_break < text.length();) {
|
|
|