Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1149)

Unified Diff: Source/core/svg/animation/SMILTime.h

Issue 1321453012: Added allocator matcros to blink classes and structures in core/svg. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGTransformDistance.h ('k') | Source/core/svg/graphics/SVGImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/animation/SMILTime.h
diff --git a/Source/core/svg/animation/SMILTime.h b/Source/core/svg/animation/SMILTime.h
index d6b5af0b28d711e1a3c211d32a843dc76cbcdb77..6119d1878ed1f1b2a6667b3f9650f40487ddd226 100644
--- a/Source/core/svg/animation/SMILTime.h
+++ b/Source/core/svg/animation/SMILTime.h
@@ -26,6 +26,7 @@
#ifndef SMILTime_h
#define SMILTime_h
+#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
#include "wtf/HashTraits.h"
#include "wtf/MathExtras.h"
@@ -33,6 +34,7 @@
namespace blink {
class SMILTime {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
SMILTime() : m_time(0) { }
SMILTime(double time) : m_time(time) { }
@@ -51,6 +53,7 @@ private:
};
class SMILTimeWithOrigin {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
enum Origin {
ParserOrigin,
@@ -77,6 +80,7 @@ private:
};
struct SMILInterval {
+ DISALLOW_ALLOCATION();
SMILInterval() { }
SMILInterval(const SMILTime& begin, const SMILTime& end) : begin(begin), end(end) { }
@@ -109,6 +113,7 @@ inline bool operator!=(const SMILInterval& a, const SMILInterval& b)
}
struct SMILTimeHash {
+ STATIC_ONLY(SMILTimeHash);
static unsigned hash(const SMILTime& key) { return WTF::FloatHash<double>::hash(key.value()); }
static bool equal(const SMILTime& a, const SMILTime& b) { return WTF::FloatHash<double>::equal(a.value(), b.value()); }
static const bool safeToCompareToEmptyOrDeleted = true;
« no previous file with comments | « Source/core/svg/SVGTransformDistance.h ('k') | Source/core/svg/graphics/SVGImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698