Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 4b8a7a47e200f821c1d1e4d9147cc8c1efe07e0b..cd9f8884f333aad985bab05fb0ed21aabfccba32 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -178,10 +178,17 @@ Element::~Element() |
if (hasSyntheticAttrChildNodes()) |
detachAllAttrNodesFromElement(); |
+#if !ENABLE(OILPAN) |
+ // With Oilpan, either the Element has been removed from the Document |
+ // or the Document is dead as well. If the Element has been removed from |
+ // the Document the element has already been removed from the pending |
+ // resources. If the document is also dead, there is no need to remove |
+ // the element from the pending resources. |
if (hasPendingResources()) { |
document().accessSVGExtensions().removeElementFromPendingResources(this); |
ASSERT(!hasPendingResources()); |
} |
+#endif |
} |
inline ElementRareData* Element::elementRareData() const |