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

Unified Diff: Source/core/dom/ElementTraversal.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/ElementFullscreen.h ('k') | Source/core/dom/Fullscreen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementTraversal.h
diff --git a/Source/core/dom/ElementTraversal.h b/Source/core/dom/ElementTraversal.h
index 35d0114cb58c14feb598944bab70c15da10632e9..6885612d581cacb3a0914f203b81739ad6958f25 100644
--- a/Source/core/dom/ElementTraversal.h
+++ b/Source/core/dom/ElementTraversal.h
@@ -28,10 +28,12 @@
#include "core/dom/Element.h"
#include "core/dom/NodeTraversal.h"
+#include "wtf/Allocator.h"
namespace blink {
class HasTagName {
+ STACK_ALLOCATED();
public:
explicit HasTagName(const QualifiedName& tagName) : m_tagName(tagName) { }
bool operator() (const Element& element) const { return element.hasTagName(m_tagName); }
@@ -41,6 +43,7 @@ private:
template <class ElementType>
class Traversal {
+ STATIC_ONLY(Traversal);
public:
using TraversalNodeType = ElementType;
// First or last ElementType child of the node.
« no previous file with comments | « Source/core/dom/ElementFullscreen.h ('k') | Source/core/dom/Fullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698