Chromium Code Reviews| Index: Source/platform/geometry/IntRect.h |
| diff --git a/Source/platform/geometry/IntRect.h b/Source/platform/geometry/IntRect.h |
| index 3eb23be9daedff2c571995b51ad667966b8772c2..a15d7615666ea433136c0e44f81b7454d37eb9bb 100644 |
| --- a/Source/platform/geometry/IntRect.h |
| +++ b/Source/platform/geometry/IntRect.h |
| @@ -29,6 +29,7 @@ |
| #include "platform/geometry/IntPoint.h" |
| #include "wtf/FastAllocBase.h" |
| #include "wtf/Vector.h" |
| +#include "wtf/VectorTraits.h" |
| #if OS(MACOSX) |
| typedef struct CGRect CGRect; |
| @@ -205,4 +206,11 @@ PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&); |
| } // namespace WebCore |
| +namespace WTF { |
| + |
| +template<> |
| +struct VectorTraits<WebCore::IntRect> : SimpleClassVectorTraits<WebCore::IntRect> { }; |
|
haraken
2014/05/19 07:13:20
Why do you need the trait for IntRect, but not nee
Erik Corry
2014/05/19 07:52:11
We could add it for FloatRect too. It makes all v
|
| + |
| +} // namespace WTF |
| + |
| #endif // IntRect_h |