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

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

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/ElementData.h ('k') | sky/engine/core/dom/ElementDataCache.h » ('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 b5821f41ecb7de0d4d3eb82bc05abb456a07d6b3..4c9a28e51ae584016e3ea0eb834c1fbd8b22e515 100644
--- a/sky/engine/core/dom/ElementData.cpp
+++ b/sky/engine/core/dom/ElementData.cpp
@@ -73,15 +73,6 @@ ElementData::ElementData(const ElementData& other, bool isUnique)
// NOTE: The inline style is copied by the subclass copy constructor since we don't know what to do with it here.
}
-#if ENABLE(OILPAN)
-void ElementData::finalizeGarbageCollectedObject()
-{
- if (m_isUnique)
- toUniqueElementData(this)->~UniqueElementData();
- else
- toShareableElementData(this)->~ShareableElementData();
-}
-#else
void ElementData::destroy()
{
if (m_isUnique)
@@ -89,7 +80,6 @@ void ElementData::destroy()
else
delete toShareableElementData(this);
}
-#endif
PassRefPtr<UniqueElementData> ElementData::makeUniqueCopy() const
{
@@ -117,19 +107,6 @@ bool ElementData::isEquivalent(const ElementData* other) const
return true;
}
-void ElementData::trace(Visitor* visitor)
-{
- if (m_isUnique)
- toUniqueElementData(this)->traceAfterDispatch(visitor);
- else
- toShareableElementData(this)->traceAfterDispatch(visitor);
-}
-
-void ElementData::traceAfterDispatch(Visitor* visitor)
-{
- visitor->trace(m_inlineStyle);
-}
-
ShareableElementData::ShareableElementData(const Vector<Attribute>& attributes)
: ElementData(attributes.size())
{
@@ -195,9 +172,4 @@ PassRefPtr<ShareableElementData> UniqueElementData::makeShareableCopy() const
return adoptRef(new (slot) ShareableElementData(*this));
}
-void UniqueElementData::traceAfterDispatch(Visitor* visitor)
-{
- ElementData::traceAfterDispatch(visitor);
-}
-
} // namespace blink
« no previous file with comments | « sky/engine/core/dom/ElementData.h ('k') | sky/engine/core/dom/ElementDataCache.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698