| Index: Source/core/dom/Element.cpp
|
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
|
| index 50052fd58801f03b8f85fae1744a941013f72c37..58886f60148202d54c7efb59b6cdd75688419243 100644
|
| --- a/Source/core/dom/Element.cpp
|
| +++ b/Source/core/dom/Element.cpp
|
| @@ -3214,18 +3214,17 @@ PassRefPtr<HTMLCollection> Element::ensureCachedHTMLCollection(CollectionType ty
|
| if (HTMLCollection* collection = cachedHTMLCollection(type))
|
| return collection;
|
|
|
| - RefPtr<HTMLCollection> collection;
|
| if (type == TableRows) {
|
| ASSERT(hasTagName(tableTag));
|
| - return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLTableRowsCollection>(this, type);
|
| + return ensureRareData().ensureNodeLists().addCache<HTMLTableRowsCollection>(this, type);
|
| } else if (type == SelectOptions) {
|
| ASSERT(hasTagName(selectTag));
|
| - return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLOptionsCollection>(this, type);
|
| + return ensureRareData().ensureNodeLists().addCache<HTMLOptionsCollection>(this, type);
|
| } else if (type == FormControls) {
|
| ASSERT(hasTagName(formTag) || hasTagName(fieldsetTag));
|
| - return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLFormControlsCollection>(this, type);
|
| + return ensureRareData().ensureNodeLists().addCache<HTMLFormControlsCollection>(this, type);
|
| }
|
| - return ensureRareData().ensureNodeLists().addCacheWithAtomicName<HTMLCollection>(this, type);
|
| + return ensureRareData().ensureNodeLists().addCache<HTMLCollection>(this, type);
|
| }
|
|
|
| static void scheduleLayerUpdateCallback(Node* node)
|
| @@ -3245,7 +3244,7 @@ void Element::scheduleLayerUpdate()
|
|
|
| HTMLCollection* Element::cachedHTMLCollection(CollectionType type)
|
| {
|
| - return hasRareData() && rareData()->nodeLists() ? rareData()->nodeLists()->cacheWithAtomicName<HTMLCollection>(type) : 0;
|
| + return hasRareData() && rareData()->nodeLists() ? rareData()->nodeLists()->cached<HTMLCollection>(type) : 0;
|
| }
|
|
|
| IntSize Element::savedLayerScrollOffset() const
|
|
|