Chromium Code Reviews| Index: Source/bindings/core/v8/WrapperTypeInfo.h |
| diff --git a/Source/bindings/core/v8/WrapperTypeInfo.h b/Source/bindings/core/v8/WrapperTypeInfo.h |
| index ee3b098ce79bf9d33be3b1c733619a78cfead8e2..72227a680ee64fe14121d2a92191b46a0cb2f9c7 100644 |
| --- a/Source/bindings/core/v8/WrapperTypeInfo.h |
| +++ b/Source/bindings/core/v8/WrapperTypeInfo.h |
| @@ -33,6 +33,7 @@ |
| #include "gin/public/wrapper_info.h" |
| #include "platform/heap/Handle.h" |
| +#include "wtf/Allocator.h" |
| #include "wtf/Assertions.h" |
| #include <v8.h> |
| @@ -203,6 +204,8 @@ struct WrapperTypeInfo { |
| const unsigned eventTargetInheritance : 1; // EventTargetInheritance |
| const unsigned lifetime : 1; // Lifetime |
| const unsigned gcType : 2; // GCType |
| + |
| + DISALLOW_ALLOCATION(); |
|
haraken
2015/08/12 07:56:12
Move this to the top of the class/struct declarati
tasak
2015/08/12 09:13:26
Done.
|
| }; |
| static_assert(offsetof(struct WrapperTypeInfo, ginEmbedder) == offsetof(struct gin::WrapperInfo, embedder), "offset of WrapperTypeInfo.ginEmbedder must be the same as gin::WrapperInfo.embedder"); |