Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 67ed9856cfe3799a5fe86e4cc6b2be8cc92b5427..01dffd3e2185837d6fd27bd407f9737470a659f8 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -35,6 +35,7 @@ |
#include "core/accessibility/AXObjectCache.h" |
#include "core/dom/Attribute.h" |
#include "core/dom/ElementTraversal.h" |
+#include "core/dom/NodeListsNodeData.h" |
#include "core/dom/NodeTraversal.h" |
#include "core/events/GestureEvent.h" |
#include "core/events/KeyboardEvent.h" |
@@ -387,12 +388,12 @@ RenderObject* HTMLSelectElement::createRenderer(RenderStyle*) |
PassRefPtrWillBeRawPtr<HTMLCollection> HTMLSelectElement::selectedOptions() |
{ |
updateListItemSelectedStates(); |
- return ensureCachedHTMLCollection(SelectedOptions); |
+ return ensureCachedCollection<HTMLCollection>(SelectedOptions); |
} |
PassRefPtrWillBeRawPtr<HTMLOptionsCollection> HTMLSelectElement::options() |
{ |
- return toHTMLOptionsCollection(ensureCachedHTMLCollection(SelectOptions).get()); |
+ return ensureCachedCollection<HTMLOptionsCollection>(SelectOptions); |
} |
void HTMLSelectElement::updateListItemSelectedStates() |
@@ -755,7 +756,7 @@ const WillBeHeapVector<RawPtrWillBeMember<HTMLElement> >& HTMLSelectElement::lis |
void HTMLSelectElement::invalidateSelectedItems() |
{ |
- if (HTMLCollection* collection = cachedHTMLCollection(SelectedOptions)) |
+ if (HTMLCollection* collection = cachedCollection<HTMLCollection>(SelectedOptions)) |
collection->invalidateCache(); |
} |
@@ -770,7 +771,7 @@ void HTMLSelectElement::setRecalcListItems() |
setOptionsChangedOnRenderer(); |
setNeedsStyleRecalc(SubtreeStyleChange); |
if (!inDocument()) { |
- if (HTMLCollection* collection = cachedHTMLCollection(SelectOptions)) |
+ if (HTMLOptionsCollection* collection = cachedCollection<HTMLOptionsCollection>(SelectOptions)) |
collection->invalidateCache(); |
} |
if (!inDocument()) |