diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/platform/text/text_break_iterator.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/platform/text/text_break_iterator.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/platform/text/text_break_iterator.cc b/chromium/third_party/blink/renderer/platform/text/text_break_iterator.cc index 0160d67d515..731a52569d3 100644 --- a/chromium/third_party/blink/renderer/platform/text/text_break_iterator.cc +++ b/chromium/third_party/blink/renderer/platform/text/text_break_iterator.cc @@ -23,6 +23,7 @@ #include "third_party/blink/renderer/platform/text/text_break_iterator.h" +#include "base/stl_util.h" #include "third_party/blink/renderer/platform/text/character.h" #include "third_party/blink/renderer/platform/wtf/ascii_ctype.h" #include "third_party/blink/renderer/platform/wtf/std_lib_extras.h" @@ -223,11 +224,11 @@ static const unsigned char kBreakAllLineBreakClassTable[][BA_LB_COUNT / 8 + 1] = #undef DI #undef AL -static_assert(arraysize(kAsciiLineBreakTable) == +static_assert(base::size(kAsciiLineBreakTable) == kAsciiLineBreakTableLastChar - kAsciiLineBreakTableFirstChar + 1, "asciiLineBreakTable should be consistent"); -static_assert(arraysize(kBreakAllLineBreakClassTable) == BA_LB_COUNT, +static_assert(base::size(kBreakAllLineBreakClassTable) == BA_LB_COUNT, "breakAllLineBreakClassTable should be consistent"); static inline bool ShouldBreakAfter(UChar last_ch, UChar ch, UChar next_ch) { |