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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (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 86a7f2e068917c9343f1439a695ef11a66d712cb..cbd5856861b10b353353392e91480eed6037c7e5 100644
--- a/third_party/WebKit/Source/core/dom/ElementData.cpp
+++ b/third_party/WebKit/Source/core/dom/ElementData.cpp
@@ -36,9 +36,9 @@
namespace blink {
-struct SameSizeAsElementData : public RefCountedWillBeGarbageCollectedFinalized<SameSizeAsElementData> {
+struct SameSizeAsElementData : public GarbageCollectedFinalized<SameSizeAsElementData> {
unsigned bitfield;
- RawPtrWillBeMember<void*> willbeMember;
+ Member<void*> willbeMember;
void* pointers[2];
};
@@ -97,11 +97,11 @@ void ElementData::destroy()
}
#endif
-PassRefPtrWillBeRawPtr<UniqueElementData> ElementData::makeUniqueCopy() const
+RawPtr<UniqueElementData> ElementData::makeUniqueCopy() const
{
if (isUnique())
- return adoptRefWillBeNoop(new UniqueElementData(toUniqueElementData(*this)));
- return adoptRefWillBeNoop(new UniqueElementData(toShareableElementData(*this)));
+ return new UniqueElementData(toUniqueElementData(*this));
+ return new UniqueElementData(toShareableElementData(*this));
}
bool ElementData::isEquivalent(const ElementData* other) const
@@ -161,7 +161,7 @@ ShareableElementData::ShareableElementData(const UniqueElementData& other)
new (&m_attributeArray[i]) Attribute(other.m_attributeVector.at(i));
}
-PassRefPtrWillBeRawPtr<ShareableElementData> ShareableElementData::createWithAttributes(const Vector<Attribute>& attributes)
+RawPtr<ShareableElementData> ShareableElementData::createWithAttributes(const Vector<Attribute>& attributes)
{
#if ENABLE(OILPAN)
void* slot = Heap::allocate<ElementData>(sizeForShareableElementDataWithAttributeCount(attributes.size()));
@@ -196,12 +196,12 @@ UniqueElementData::UniqueElementData(const ShareableElementData& other)
m_attributeVector.uncheckedAppend(other.m_attributeArray[i]);
}
-PassRefPtrWillBeRawPtr<UniqueElementData> UniqueElementData::create()
+RawPtr<UniqueElementData> UniqueElementData::create()
{
return adoptRefWillBeNoop(new UniqueElementData);
}
-PassRefPtrWillBeRawPtr<ShareableElementData> UniqueElementData::makeShareableCopy() const
+RawPtr<ShareableElementData> UniqueElementData::makeShareableCopy() const
{
#if ENABLE(OILPAN)
void* slot = Heap::allocate<ElementData>(sizeForShareableElementDataWithAttributeCount(m_attributeVector.size()));
« no previous file with comments | « third_party/WebKit/Source/core/dom/ElementData.h ('k') | third_party/WebKit/Source/core/dom/ElementDataCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698