Code: bool HTMLFormControlElement::isAutofocusable() const
 {
    if (!fastHasAttribute(autofocusAttr))
        return false;
    if (hasTagName(inputTag))
        return !toHTMLInputElement(this)->isInputTypeHidden();
    if (hasTagName(selectTag))
        return true;
    if (hasTagName(keygenTag))
        return true;
    if (hasTagName(buttonTag))
        return true;
    if (hasTagName(textareaTag))
        return true;
     return false;
 }

Vulnerability Type: DoS Overflow 
CWE ID: CWE-119
Summary: Google Chrome before 25.0.1364.97 on Windows and Linux, and before 25.0.1364.99 on Mac OS X, allows remote attackers to cause a denial of service (incorrect memory access) or possibly have unspecified other impact via a large number of SVG parameters.
Commit Message: Add HTMLFormControlElement::supportsAutofocus to fix a FIXME comment.

This virtual function should return true if the form control can hanlde
'autofocucs' attribute if it is specified.

Note: HTMLInputElement::supportsAutofocus reuses InputType::isInteractiveContent
because interactiveness is required for autofocus capability.

BUG=none
TEST=none; no behavior changes.

Review URL: https://codereview.chromium.org/143343003

git-svn-id: svn://svn.chromium.org/blink/trunk@165432 bbb929c8-8fbe-4397-9dbb-9b2b20218538