Title: [227539] branches/safari-605-branch/Source/WebKitLegacy/win
Revision
227539
Author
[email protected]
Date
2018-01-24 12:15:44 -0800 (Wed, 24 Jan 2018)

Log Message

Cherry-pick r227481. rdar://problem/36830349

Modified Paths

Diff

Modified: branches/safari-605-branch/Source/WebKitLegacy/win/ChangeLog (227538 => 227539)


--- branches/safari-605-branch/Source/WebKitLegacy/win/ChangeLog	2018-01-24 20:15:43 UTC (rev 227538)
+++ branches/safari-605-branch/Source/WebKitLegacy/win/ChangeLog	2018-01-24 20:15:44 UTC (rev 227539)
@@ -1,5 +1,16 @@
 2018-01-24  Jason Marcell  <[email protected]>
 
+        Cherry-pick r227481. rdar://problem/36830349
+
+    2018-01-24  Wenson Hsieh  <[email protected]>
+
+            Unreviewed, another attempt to fix the Windows build after r227479.
+
+            * WebFrame.cpp:
+            (WebFrame::elementWithName):
+
+2018-01-24  Jason Marcell  <[email protected]>
+
         Cherry-pick r227480. rdar://problem/36830349
 
     2018-01-24  Wenson Hsieh  <[email protected]>

Modified: branches/safari-605-branch/Source/WebKitLegacy/win/WebFrame.cpp (227538 => 227539)


--- branches/safari-605-branch/Source/WebKitLegacy/win/WebFrame.cpp	2018-01-24 20:15:43 UTC (rev 227538)
+++ branches/safari-605-branch/Source/WebKitLegacy/win/WebFrame.cpp	2018-01-24 20:15:44 UTC (rev 227539)
@@ -1089,10 +1089,10 @@
     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);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to