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

Unified Diff: Source/core/html/parser/HTMLEntityTable.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/parser/HTMLEntitySearch.h ('k') | Source/core/html/parser/HTMLFormattingElementList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLEntityTable.h
diff --git a/Source/core/html/parser/HTMLEntityTable.h b/Source/core/html/parser/HTMLEntityTable.h
index 6acc69b6013e010a63f9f732159baeec0f10b747..142e73e2ebad0d99bda6c556d56ebc8a78e5e6d4 100644
--- a/Source/core/html/parser/HTMLEntityTable.h
+++ b/Source/core/html/parser/HTMLEntityTable.h
@@ -26,12 +26,14 @@
#ifndef HTMLEntityTable_h
#define HTMLEntityTable_h
+#include "wtf/Allocator.h"
#include "wtf/text/WTFString.h"
namespace blink {
// Member order to optimize packing. There will be thousands of these objects.
struct HTMLEntityTableEntry {
+ DISALLOW_ALLOCATION();
LChar lastCharacter() const;
UChar32 firstValue;
@@ -41,6 +43,7 @@ struct HTMLEntityTableEntry {
};
class HTMLEntityTable {
+ STATIC_ONLY(HTMLEntityTable);
public:
static const HTMLEntityTableEntry* firstEntry();
static const HTMLEntityTableEntry* lastEntry();
« no previous file with comments | « Source/core/html/parser/HTMLEntitySearch.h ('k') | Source/core/html/parser/HTMLFormattingElementList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698