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

Unified Diff: Source/core/html/parser/HTMLSrcsetParser.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/HTMLSourceTracker.h ('k') | Source/core/html/parser/HTMLToken.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLSrcsetParser.h
diff --git a/Source/core/html/parser/HTMLSrcsetParser.h b/Source/core/html/parser/HTMLSrcsetParser.h
index 62a3ce422c9f4285f9f0dc662fbde115de0c6714..ddcd90774b946398d68e2dc3f16f44fbc15481ec 100644
--- a/Source/core/html/parser/HTMLSrcsetParser.h
+++ b/Source/core/html/parser/HTMLSrcsetParser.h
@@ -33,6 +33,7 @@
#define HTMLSrcsetParser_h
#include "core/CoreExport.h"
+#include "wtf/Allocator.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -42,6 +43,7 @@ class Document;
enum { UninitializedDescriptor = -1 };
class DescriptorParsingResult {
+ STACK_ALLOCATED();
public:
DescriptorParsingResult()
: m_density(UninitializedDescriptor)
@@ -69,6 +71,7 @@ private:
};
class ImageCandidate {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
enum OriginAttribute {
SrcsetOrigin,
« no previous file with comments | « Source/core/html/parser/HTMLSourceTracker.h ('k') | Source/core/html/parser/HTMLToken.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698