Index: third_party/WebKit/Source/core/dom/ElementData.cpp |
diff --git a/third_party/WebKit/Source/core/dom/ElementData.cpp b/third_party/WebKit/Source/core/dom/ElementData.cpp |
index 5a277b91f39f1f344fe9e71f9cae5d6dfd4ae7a6..3774cb63761b62e003a19dd1a307ac536d861474 100644 |
--- a/third_party/WebKit/Source/core/dom/ElementData.cpp |
+++ b/third_party/WebKit/Source/core/dom/ElementData.cpp |
@@ -163,12 +163,8 @@ ShareableElementData::ShareableElementData(const UniqueElementData& other) |
RawPtr<ShareableElementData> ShareableElementData::createWithAttributes(const Vector<Attribute>& attributes) |
{ |
-#if ENABLE(OILPAN) |
void* slot = Heap::allocate<ElementData>(sizeForShareableElementDataWithAttributeCount(attributes.size())); |
-#else |
- void* slot = WTF::Partitions::fastMalloc(sizeForShareableElementDataWithAttributeCount(attributes.size()), WTF_HEAP_PROFILER_TYPE_NAME(ShareableElementData)); |
-#endif |
- return adoptRefWillBeNoop(new (slot) ShareableElementData(attributes)); |
+ return new (slot) ShareableElementData(attributes); |
} |
UniqueElementData::UniqueElementData() |
@@ -203,12 +199,8 @@ RawPtr<UniqueElementData> UniqueElementData::create() |
RawPtr<ShareableElementData> UniqueElementData::makeShareableCopy() const |
{ |
-#if ENABLE(OILPAN) |
void* slot = Heap::allocate<ElementData>(sizeForShareableElementDataWithAttributeCount(m_attributeVector.size())); |
-#else |
- void* slot = WTF::Partitions::fastMalloc(sizeForShareableElementDataWithAttributeCount(m_attributeVector.size()), WTF_HEAP_PROFILER_TYPE_NAME(ShareableElementData)); |
-#endif |
- return adoptRefWillBeNoop(new (slot) ShareableElementData(*this)); |
+ return new (slot) ShareableElementData(*this); |
} |
DEFINE_TRACE_AFTER_DISPATCH(UniqueElementData) |