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

Unified Diff: third_party/WebKit/Source/core/dom/ElementData.cpp

Issue 1850183003: Round out WillBe type removal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
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)
« no previous file with comments | « third_party/WebKit/Source/core/css/StylePropertySet.cpp ('k') | third_party/WebKit/Source/core/layout/HitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698