| Index: third_party/WebKit/Source/wtf/Allocator.h
|
| diff --git a/third_party/WebKit/Source/wtf/Allocator.h b/third_party/WebKit/Source/wtf/Allocator.h
|
| index 5aacf776cee91fdc08040ce0a390330840d003ab..3bbe5334bc0578776603df626e630f123bb97532 100644
|
| --- a/third_party/WebKit/Source/wtf/Allocator.h
|
| +++ b/third_party/WebKit/Source/wtf/Allocator.h
|
| @@ -6,7 +6,7 @@
|
| #define WTF_Allocator_h
|
|
|
| #include "wtf/Assertions.h"
|
| -#include "wtf/StdLibExtras.h"
|
| +#include "wtf/TypeTraits.h"
|
| #include "wtf/allocator/Partitions.h"
|
|
|
| namespace WTF {
|
| @@ -146,4 +146,11 @@ namespace WTF {
|
|
|
| } // namespace WTF
|
|
|
| +// This version of placement new omits a 0 check.
|
| +enum NotNullTag { NotNull };
|
| +inline void* operator new(size_t, NotNullTag, void* location) {
|
| + DCHECK(location);
|
| + return location;
|
| +}
|
| +
|
| #endif /* WTF_Allocator_h */
|
|
|