Index: third_party/WebKit/Source/wtf/SizeLimits.cpp |
diff --git a/third_party/WebKit/Source/wtf/SizeLimits.cpp b/third_party/WebKit/Source/wtf/SizeLimits.cpp |
index a0c9b0318f29bdd2ced65596d080594d76b445bb..9049b47f6814a3f405a9f90dc10c9a75ee38ecd1 100644 |
--- a/third_party/WebKit/Source/wtf/SizeLimits.cpp |
+++ b/third_party/WebKit/Source/wtf/SizeLimits.cpp |
@@ -30,6 +30,7 @@ |
#include "wtf/Assertions.h" |
#include "wtf/ContainerAnnotations.h" |
+#include "wtf/OwnPtr.h" |
#include "wtf/PassRefPtr.h" |
#include "wtf/RefCounted.h" |
#include "wtf/RefPtr.h" |
@@ -37,7 +38,6 @@ |
#include "wtf/Vector.h" |
#include "wtf/text/AtomicString.h" |
#include "wtf/text/WTFString.h" |
-#include <memory> |
namespace WTF { |
@@ -77,7 +77,7 @@ struct SameSizeAsVectorWithInlineCapacity { |
#endif |
}; |
-static_assert(sizeof(std::unique_ptr<int>) == sizeof(int*), "std::unique_ptr should stay small"); |
+static_assert(sizeof(OwnPtr<int>) == sizeof(int*), "OwnPtr should stay small"); |
static_assert(sizeof(PassRefPtr<RefCounted<int>>) == sizeof(int*), "PassRefPtr should stay small"); |
static_assert(sizeof(RefCounted<int>) == sizeof(SameSizeAsRefCounted), "RefCounted should stay small"); |
static_assert(sizeof(RefPtr<RefCounted<int>>) == sizeof(int*), "RefPtr should stay small"); |