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

Unified Diff: Source/core/html/parser/HTMLInputStream.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/HTMLFormattingElementList.h ('k') | Source/core/html/parser/HTMLParserOptions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/parser/HTMLInputStream.h
diff --git a/Source/core/html/parser/HTMLInputStream.h b/Source/core/html/parser/HTMLInputStream.h
index 762bfefddb8348ffeed07f4fd0569ba2c0f0cc64..89de9f85ed6a8f429cc99723bbecd6dd7971bb19 100644
--- a/Source/core/html/parser/HTMLInputStream.h
+++ b/Source/core/html/parser/HTMLInputStream.h
@@ -28,6 +28,7 @@
#include "core/html/parser/InputStreamPreprocessor.h"
#include "platform/text/SegmentedString.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -49,6 +50,7 @@ namespace blink {
// The network adds data at the end of the InputStream, which appends
// them to the "last" string.
class HTMLInputStream {
+ DISALLOW_ALLOCATION();
WTF_MAKE_NONCOPYABLE(HTMLInputStream);
public:
HTMLInputStream()
@@ -124,6 +126,7 @@ private:
};
class InsertionPointRecord {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(InsertionPointRecord);
public:
explicit InsertionPointRecord(HTMLInputStream& inputStream)
« no previous file with comments | « Source/core/html/parser/HTMLFormattingElementList.h ('k') | Source/core/html/parser/HTMLParserOptions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698