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

Unified Diff: sky/engine/core/dom/ElementData.cpp

Issue 678003003: Begin to remove heap/* (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/engine/core/dom/DocumentTest.cpp ('k') | sky/engine/core/frame/ImageBitmapTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/ElementData.cpp
diff --git a/sky/engine/core/dom/ElementData.cpp b/sky/engine/core/dom/ElementData.cpp
index 1fe802463549c0f9e358c4c12cea1bf2272ebf1c..1443d4bb452cea768eef869389b013f5b2ea80ec 100644
--- a/sky/engine/core/dom/ElementData.cpp
+++ b/sky/engine/core/dom/ElementData.cpp
@@ -156,11 +156,7 @@ ShareableElementData::ShareableElementData(const UniqueElementData& other)
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));
}
@@ -195,11 +191,7 @@ PassRefPtrWillBeRawPtr<UniqueElementData> UniqueElementData::create()
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));
}
« no previous file with comments | « sky/engine/core/dom/DocumentTest.cpp ('k') | sky/engine/core/frame/ImageBitmapTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698