| Index: third_party/WebKit/Source/wtf/StdLibExtras.h
|
| diff --git a/third_party/WebKit/Source/wtf/StdLibExtras.h b/third_party/WebKit/Source/wtf/StdLibExtras.h
|
| index 5475d3feb7e47a9e4b1ee0552abfadca7f508e13..efaa3c65142fedce8a99dce73595bc5f6fac15b7 100644
|
| --- a/third_party/WebKit/Source/wtf/StdLibExtras.h
|
| +++ b/third_party/WebKit/Source/wtf/StdLibExtras.h
|
| @@ -26,9 +26,9 @@
|
| #ifndef WTF_StdLibExtras_h
|
| #define WTF_StdLibExtras_h
|
|
|
| -#include "base/numerics/safe_conversions.h"
|
| #include "wtf/Assertions.h"
|
| #include "wtf/CPU.h"
|
| +#include "wtf/CheckedArithmetic.h"
|
| #include "wtf/LeakAnnotations.h"
|
| #include <cstddef>
|
|
|
| @@ -153,7 +153,8 @@
|
| template<typename To, typename From>
|
| inline To safeCast(From value)
|
| {
|
| - return base::checked_cast<To>(value);
|
| + RELEASE_ASSERT(isInBounds<To>(value));
|
| + return static_cast<To>(value);
|
| }
|
|
|
| // Use the following macros to prevent errors caused by accidental
|
|
|