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

Unified Diff: Source/core/layout/HitTestCache.h

Issue 1318713003: Make classes and structures in core/layout 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/layout/GapRects.h ('k') | Source/core/layout/HitTestLocation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/HitTestCache.h
diff --git a/Source/core/layout/HitTestCache.h b/Source/core/layout/HitTestCache.h
index 2aa787f109eec1628804020e3c922af44cf2c478..53d48d7e4c07818296146de58d0c10c1693278e0 100644
--- a/Source/core/layout/HitTestCache.h
+++ b/Source/core/layout/HitTestCache.h
@@ -8,6 +8,7 @@
#include "core/CoreExport.h"
#include "core/layout/HitTestResult.h"
#include "platform/heap/Handle.h"
+#include "wtf/Noncopyable.h"
#include "wtf/Vector.h"
namespace blink {
@@ -34,6 +35,8 @@ namespace blink {
#define HIT_TEST_CACHE_SIZE (2)
class CORE_EXPORT HitTestCache final : public NoBaseWillBeGarbageCollectedFinalized<HitTestCache> {
+ WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(HitTestCache);
+ WTF_MAKE_NONCOPYABLE(HitTestCache);
public:
static PassOwnPtrWillBeRawPtr<HitTestCache> create()
{
« no previous file with comments | « Source/core/layout/GapRects.h ('k') | Source/core/layout/HitTestLocation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698