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

Unified Diff: Source/core/editing/VisibleSelection.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/VisibleSelection.h
diff --git a/Source/core/editing/VisibleSelection.h b/Source/core/editing/VisibleSelection.h
index eac2b4230e7219ce0261be0ce262a787bf8c99f8..c288c0de3418e30df7849c3d51313a4a9061c34d 100644
--- a/Source/core/editing/VisibleSelection.h
+++ b/Source/core/editing/VisibleSelection.h
@@ -34,6 +34,7 @@
#include "core/editing/TextGranularity.h"
#include "core/editing/VisiblePosition.h"
#include "core/editing/VisibleUnits.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -48,6 +49,7 @@ class CORE_EXPORT VisibleSelection {
DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(VisibleSelection);
public:
class InDOMTree {
+ STATIC_ONLY(InDOMTree);
public:
using PositionType = Position;
using Strategy = EditingStrategy;
@@ -65,6 +67,7 @@ public:
};
class InComposedTree {
+ STATIC_ONLY(InComposedTree);
public:
using PositionType = PositionInComposedTree;
using Strategy = EditingInComposedTreeStrategy;

Powered by Google App Engine
This is Rietveld 408576698