Commit a482b8b2 authored by ch.dumez@samsung.com's avatar ch.dumez@samsung.com

Use tighter typing in RadioNodeList::elementMatches()

Use tighter typing in RadioNodeList::elementMatches() to give C++11 compilers
a chance to devirtualize the call to HTMLImageElement::formOwner().

R=adamk@chromium.org

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

git-svn-id: svn://svn.chromium.org/blink/trunk@180369 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 86c749fe
......@@ -30,6 +30,7 @@
#include "core/dom/Element.h"
#include "core/dom/NodeRareData.h"
#include "core/html/HTMLFormElement.h"
#include "core/html/HTMLImageElement.h"
#include "core/html/HTMLInputElement.h"
#include "core/html/HTMLObjectElement.h"
......@@ -114,7 +115,7 @@ bool RadioNodeList::elementMatches(const Element& element) const
if (!isHTMLImageElement(element))
return false;
if (toHTMLElement(element).formOwner() != ownerNode())
if (toHTMLImageElement(element).formOwner() != ownerNode())
return false;
return matchesByIdOrName(element);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment