Index: Source/core/html/HTMLFormElement.cpp |
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp |
index 703d3eff1396ba351ddb297e8cf4ffd1a352dd28..b74f5da1e9ad76128771ef1f5bb2956cd9f72c7f 100644 |
--- a/Source/core/html/HTMLFormElement.cpp |
+++ b/Source/core/html/HTMLFormElement.cpp |
@@ -251,7 +251,7 @@ bool HTMLFormElement::validateInteractively(Event* event) |
toHTMLFormControlElement(elements[i])->hideVisibleValidationMessage(); |
} |
- Vector<RefPtr<FormAssociatedElement> > unhandledInvalidControls; |
+ WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement> > unhandledInvalidControls; |
if (!checkInvalidControlsAndCollectUnhandled(&unhandledInvalidControls)) |
return true; |
// Because the form has invalid controls, we abort the form submission and |
@@ -645,13 +645,13 @@ bool HTMLFormElement::checkValidity() |
return !checkInvalidControlsAndCollectUnhandled(0); |
} |
-bool HTMLFormElement::checkInvalidControlsAndCollectUnhandled(Vector<RefPtr<FormAssociatedElement> >* unhandledInvalidControls) |
+bool HTMLFormElement::checkInvalidControlsAndCollectUnhandled(WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement> >* unhandledInvalidControls) |
{ |
RefPtr<HTMLFormElement> protector(this); |
// Copy associatedElements because event handlers called from |
// HTMLFormControlElement::checkValidity() might change associatedElements. |
const Vector<FormAssociatedElement*>& associatedElements = this->associatedElements(); |
- Vector<RefPtr<FormAssociatedElement> > elements; |
+ WillBeHeapVector<RefPtrWillBeMember<FormAssociatedElement> > elements; |
elements.reserveCapacity(associatedElements.size()); |
for (unsigned i = 0; i < associatedElements.size(); ++i) |
elements.append(associatedElements[i]); |