⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 107322 in webkit


Ignore:
Timestamp:
Feb 9, 2012, 5:23:12 PM (15 years ago)
Author:
cevans@google.com
Message:

Merge 106771
BUG=112735
Review URL: https://chromiumcodereview.appspot.com/9369053

Location:
branches/chromium/1025
Files:
1 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/chromium/1025/Source/WebCore/loader/FormSubmission.cpp

    r98896 r107322  
    143143
    144144    HTMLFormControlElement* submitButton = 0;
    145     if (event && event->target() && event->target()->toNode())
    146         submitButton = static_cast<HTMLFormControlElement*>(event->target()->toNode());
     145    if (event && event->target()) {
     146        Node* node = event->target()->toNode();
     147        if (node && node->isElementNode() && toElement(node)->isFormControlElement())
     148            submitButton = static_cast<HTMLFormControlElement*>(node);
     149    }
    147150
    148151    FormSubmission::Attributes copiedAttributes;
Note: See TracChangeset for help on using the changeset viewer.