PassRefPtrWillBeRawPtr<ShareableElementData> UniqueElementData::makeShareableCopy() const { #if ENABLE(OILPAN) void* slot = Heap::allocate<ElementData>(sizeForShareableElementDataWithAttributeCount(m_attributeVector.size())); #else void* slot = WTF::fastMalloc(sizeForShareableElementDataWithAttributeCount(m_attributeVector.size())); #endif return adoptRefWillBeNoop(new (slot) ShareableElementData(*this)); }
PassRefPtrWillBeRawPtr<ShareableElementData> ShareableElementData::createWithAttributes(const Vector<Attribute>& attributes) { #if ENABLE(OILPAN) void* slot = Heap::allocate<ElementData>(sizeForShareableElementDataWithAttributeCount(attributes.size())); #else void* slot = WTF::fastMalloc(sizeForShareableElementDataWithAttributeCount(attributes.size())); #endif return adoptRefWillBeNoop(new (slot) ShareableElementData(attributes)); }
PassRefPtr<ShareableElementData> UniqueElementData::makeShareableCopy() const { void* slot = WTF::fastMalloc(sizeForShareableElementDataWithAttributeCount(m_attributeVector.size())); return adoptRef(new (slot) ShareableElementData(*this)); }
PassRefPtr<ShareableElementData> ShareableElementData::createWithAttributes(const Vector<Attribute>& attributes) { void* slot = WTF::fastMalloc(sizeForShareableElementDataWithAttributeCount(attributes.size())); return adoptRef(new (slot) ShareableElementData(attributes)); }