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

Unified Diff: Source/core/dom/Attribute.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/AXObjectCache.h ('k') | Source/core/dom/AttributeCollection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Attribute.h
diff --git a/Source/core/dom/Attribute.h b/Source/core/dom/Attribute.h
index df790ec0bc9356fe85f5a504b57e804250217c3e..ced213efa2c537a75e5c48353883f3760008305c 100644
--- a/Source/core/dom/Attribute.h
+++ b/Source/core/dom/Attribute.h
@@ -26,6 +26,7 @@
#define Attribute_h
#include "core/dom/QualifiedName.h"
+#include "wtf/Allocator.h"
namespace blink {
@@ -33,6 +34,7 @@ namespace blink {
// value. It is distinct from the web-exposed Attr, which also knows of the
// element to which it attached, if any.
class Attribute {
+ ALLOW_ONLY_INLINE_ALLOCATION();
public:
Attribute(const QualifiedName& name, const AtomicString& value)
: m_name(name)
« no previous file with comments | « Source/core/dom/AXObjectCache.h ('k') | Source/core/dom/AttributeCollection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698