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

Unified Diff: Source/core/css/parser/CSSParserToken.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/parser/CSSParserString.h ('k') | Source/core/css/parser/CSSParserTokenRange.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/parser/CSSParserToken.h
diff --git a/Source/core/css/parser/CSSParserToken.h b/Source/core/css/parser/CSSParserToken.h
index 75e45a545debe282550e92ce3a612a2c5fc98185..d9188fa17a13e6336c8762400f8f11c42c825ef3 100644
--- a/Source/core/css/parser/CSSParserToken.h
+++ b/Source/core/css/parser/CSSParserToken.h
@@ -8,6 +8,7 @@
#include "core/CoreExport.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/parser/CSSParserString.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -64,6 +65,7 @@ enum HashTokenType {
};
class CORE_EXPORT CSSParserToken {
+ WTF_MAKE_FAST_ALLOCATED(CSSParserToken);
public:
enum BlockType {
NotBlock,
@@ -145,6 +147,7 @@ private:
namespace WTF {
template <>
struct IsTriviallyMoveAssignable<blink::CSSParserToken> {
+ STATIC_ONLY(IsTriviallyMoveAssignable);
static const bool value = true;
};
}
« no previous file with comments | « Source/core/css/parser/CSSParserString.h ('k') | Source/core/css/parser/CSSParserTokenRange.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698