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

Unified Diff: Source/core/css/CSSToLengthConversionData.h

Issue 1304623002: Make blink classes and structures in core/css fast-allocated (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing (Fixed windows compile error) 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/css/CSSTestHelper.h ('k') | Source/core/css/ComputedStyleCSSValueMapping.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSToLengthConversionData.h
diff --git a/Source/core/css/CSSToLengthConversionData.h b/Source/core/css/CSSToLengthConversionData.h
index d6a3bbd64b0fcece7c811d875b80006a737aa455..6682826da4a65bde4f9c8a20af504f34c79f663a 100644
--- a/Source/core/css/CSSToLengthConversionData.h
+++ b/Source/core/css/CSSToLengthConversionData.h
@@ -32,6 +32,7 @@
#define CSSToLengthConversionData_h
#include "core/CoreExport.h"
+#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
#include "wtf/MathExtras.h"
#include <limits>
@@ -43,9 +44,11 @@ class LayoutView;
class Font;
class CORE_EXPORT CSSToLengthConversionData {
+ DISALLOW_ALLOCATION();
public:
class FontSizes {
+ DISALLOW_ALLOCATION();
public:
FontSizes() : m_em(0), m_rem(0), m_font(nullptr) { }
FontSizes(float em, float rem, const Font*);
@@ -62,6 +65,7 @@ public:
};
class ViewportSize {
+ DISALLOW_ALLOCATION();
public:
ViewportSize() : m_width(0), m_height(0) { }
ViewportSize(double width, double height) : m_width(width), m_height(height) { }
« no previous file with comments | « Source/core/css/CSSTestHelper.h ('k') | Source/core/css/ComputedStyleCSSValueMapping.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698