Index: Source/core/dom/Element.cpp |
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
index 5702c3af1d76f1b6db00285099fcbb6171e5c191..11fbccd74a3891a4971d9f1d6f1619055fc09aa7 100644 |
--- a/Source/core/dom/Element.cpp |
+++ b/Source/core/dom/Element.cpp |
@@ -2918,34 +2918,11 @@ void Element::updateExtraNamedItemRegistration(const AtomicString& oldId, const |
toHTMLDocument(document()).addExtraNamedItem(newId); |
} |
-PassRefPtrWillBeRawPtr<HTMLCollection> Element::ensureCachedHTMLCollection(CollectionType type) |
-{ |
- if (HTMLCollection* collection = cachedHTMLCollection(type)) |
- return collection; |
- |
- if (type == TableRows) { |
- ASSERT(isHTMLTableElement(this)); |
- return ensureRareData().ensureNodeLists().addCache<HTMLTableRowsCollection>(*this, type); |
- } else if (type == SelectOptions) { |
- ASSERT(isHTMLSelectElement(this)); |
- return ensureRareData().ensureNodeLists().addCache<HTMLOptionsCollection>(*this, type); |
- } else if (type == FormControls) { |
- ASSERT(isHTMLFormElement(this) || isHTMLFieldSetElement(this)); |
- return ensureRareData().ensureNodeLists().addCache<HTMLFormControlsCollection>(*this, type); |
- } |
- return ensureRareData().ensureNodeLists().addCache<HTMLCollection>(*this, type); |
-} |
- |
void Element::scheduleSVGFilterLayerUpdateHack() |
{ |
document().scheduleSVGFilterLayerUpdateHack(*this); |
} |
-HTMLCollection* Element::cachedHTMLCollection(CollectionType type) |
-{ |
- return hasRareData() && rareData()->nodeLists() ? rareData()->nodeLists()->cached<HTMLCollection>(type) : 0; |
-} |
- |
IntSize Element::savedLayerScrollOffset() const |
{ |
return hasRareData() ? elementRareData()->savedLayerScrollOffset() : IntSize(); |