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

Unified Diff: Source/core/css/FontSize.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/FontFaceSet.h ('k') | Source/core/css/HashTools.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/FontSize.h
diff --git a/Source/core/css/FontSize.h b/Source/core/css/FontSize.h
index c16e2d343d8591476d72d5b81e117f562de992d3..5be4149e2d32a8a67cb4ee2c4f6ef29bb1045b63 100644
--- a/Source/core/css/FontSize.h
+++ b/Source/core/css/FontSize.h
@@ -23,6 +23,7 @@
#define FontSize_h
#include "core/CSSValueKeywords.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -31,11 +32,7 @@ class Document;
enum ESmartMinimumForFontSize { DoNotUseSmartMinimumForFontSize, UseSmartMinimumForFontFize };
class FontSize {
-private:
- FontSize()
- {
- }
-
+ STATIC_ONLY(FontSize);
public:
static float getComputedSizeFromSpecifiedSize(const Document*, float zoomFactor, bool isAbsoluteSize, float specifiedSize, ESmartMinimumForFontSize = UseSmartMinimumForFontFize);
« no previous file with comments | « Source/core/css/FontFaceSet.h ('k') | Source/core/css/HashTools.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698