+2018-01-24 Wenson Hsieh <wenson_hsieh@apple.com>
+
+ Unreviewed, another attempt to fix the Windows build after r227479.
+
+ * WebFrame.cpp:
+ (WebFrame::elementWithName):
+
2018-01-24 Wenson Hsieh <wenson_hsieh@apple.com>
Unreviewed, try to fix the Windows build after r227479.
HTMLFormElement* formElement = formElementFromDOMElement(form);
if (formElement) {
AtomicString targetName((UChar*)name, SysStringLen(name));
- for (auto& element : formElement->copyAssociatedElementsVector()) {
- if (!is<HTMLFormControlElement>(element.get()))
+ for (auto& associatedElement : formElement->copyAssociatedElementsVector()) {
+ if (!is<HTMLFormControlElement>(associatedElement.get()))
continue;
- auto& elt = downcast<HTMLFormControlElement>(element.get());
+ auto& elt = downcast<HTMLFormControlElement>(associatedElement.get());
// Skip option elements, other duds.
if (elt.name() == targetName) {
*element = DOMElement::createInstance(&elt);