| Index: third_party/WebKit/Source/core/dom/CharacterData.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/CharacterData.cpp b/third_party/WebKit/Source/core/dom/CharacterData.cpp
|
| index b54428dbaf969c1696f6c3d610d48382d421bac7..62df07f5b6c08fefd3164eb47c995df75e30ffbf 100644
|
| --- a/third_party/WebKit/Source/core/dom/CharacterData.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/CharacterData.cpp
|
| @@ -31,7 +31,7 @@
|
| #include "core/editing/FrameSelection.h"
|
| #include "core/events/MutationEvent.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| -#include "wtf/CheckedNumeric.h"
|
| +#include "wtf/CheckedArithmetic.h"
|
|
|
| namespace blink {
|
|
|
| @@ -102,10 +102,10 @@
|
| return false;
|
| }
|
|
|
| - CheckedNumeric<unsigned> offsetCount = offset;
|
| + Checked<unsigned, RecordOverflow> offsetCount = offset;
|
| offsetCount += count;
|
|
|
| - if (!offsetCount.IsValid() || offset + count > length)
|
| + if (offsetCount.hasOverflowed() || offset + count > length)
|
| realCount = length - offset;
|
| else
|
| realCount = count;
|
|
|