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

Unified Diff: Source/core/editing/iterators/SearchBuffer.h

Issue 1306003002: Make classes and structures in core/editing 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
Index: Source/core/editing/iterators/SearchBuffer.h
diff --git a/Source/core/editing/iterators/SearchBuffer.h b/Source/core/editing/iterators/SearchBuffer.h
index ae1cff225995000486f5255f54a72a6b24513ea6..ec8cbd8bcfa6271f7aca03645fd66d2c03ee5787 100644
--- a/Source/core/editing/iterators/SearchBuffer.h
+++ b/Source/core/editing/iterators/SearchBuffer.h
@@ -29,6 +29,7 @@
#include "core/CoreExport.h"
#include "core/editing/EphemeralRange.h"
#include "core/editing/FindOptions.h"
+#include "wtf/Allocator.h"
#include "wtf/Vector.h"
namespace blink {
@@ -41,6 +42,7 @@ namespace blink {
// inside a word are permitted if TreatMedialCapitalAsWordStart is specified as
// well.
class SearchBuffer {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(SearchBuffer);
public:
SearchBuffer(const String& target, FindOptions);

Powered by Google App Engine
This is Rietveld 408576698