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

Unified Diff: Source/core/dom/DocumentLifecycle.h

Issue 1304043002: Make classes and structures in core/dom 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/dom/DocumentFullscreen.h ('k') | Source/core/dom/DocumentOrderedMap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/DocumentLifecycle.h
diff --git a/Source/core/dom/DocumentLifecycle.h b/Source/core/dom/DocumentLifecycle.h
index 44d4650b545a44a80f45f5fa01e5bc32f787a9d7..fae9797b7412a84a7b64a592bdd20302f5e3b5d4 100644
--- a/Source/core/dom/DocumentLifecycle.h
+++ b/Source/core/dom/DocumentLifecycle.h
@@ -32,12 +32,14 @@
#define DocumentLifecycle_h
#include "core/CoreExport.h"
+#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
#include "wtf/Noncopyable.h"
namespace blink {
class CORE_EXPORT DocumentLifecycle {
+ DISALLOW_ALLOCATION();
WTF_MAKE_NONCOPYABLE(DocumentLifecycle);
public:
enum State {
@@ -79,6 +81,7 @@ public:
};
class Scope {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(Scope);
public:
Scope(DocumentLifecycle&, State finalState);
@@ -90,6 +93,7 @@ public:
};
class DeprecatedTransition {
+ DISALLOW_ALLOCATION();
WTF_MAKE_NONCOPYABLE(DeprecatedTransition);
public:
DeprecatedTransition(State from, State to);
@@ -105,6 +109,7 @@ public:
};
class DetachScope {
+ STACK_ALLOCATED();
WTF_MAKE_NONCOPYABLE(DetachScope);
public:
explicit DetachScope(DocumentLifecycle& documentLifecycle)
« no previous file with comments | « Source/core/dom/DocumentFullscreen.h ('k') | Source/core/dom/DocumentOrderedMap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698