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

Unified Diff: Source/core/html/HTMLDimension.h

Issue 1306413003: Make classes and structures in core/html fast-allocated. (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/html/HTMLContentElement.h ('k') | Source/core/html/HTMLElement.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLDimension.h
diff --git a/Source/core/html/HTMLDimension.h b/Source/core/html/HTMLDimension.h
index dbf85046d5858c0dc574a9c46ba5c56da7f4450e..33c0e3c6b7525b81b97a0409f3a3a01bad9caba4 100644
--- a/Source/core/html/HTMLDimension.h
+++ b/Source/core/html/HTMLDimension.h
@@ -32,6 +32,7 @@
#define HTMLDimension_h
#include "core/CoreExport.h"
+#include "wtf/Allocator.h"
#include "wtf/Forward.h"
#include "wtf/Vector.h"
@@ -40,6 +41,7 @@ namespace blink {
// This class corresponds to a dimension as described in HTML5 by the
// "rules for parsing a list of dimensions" (section 2.4.4.6).
class HTMLDimension {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
enum HTMLDimensionType {
Relative, Percentage, Absolute
« no previous file with comments | « Source/core/html/HTMLContentElement.h ('k') | Source/core/html/HTMLElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698