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

Changeset 107324 in webkit


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

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

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

Legend:

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

    r98896 r107324  
    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.