Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(301)

Unified Diff: Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp

Issue 18251004: Introduce isHTMLAreaElement and toHTMLAreaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/accessibility/AXObjectCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp
diff --git a/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp b/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp
index dfb4dd5f01f54b3ccc1671a919c7f93def7d11df..2da0d1c16ba1eb697866612bc48d6a17a985bd22 100644
--- a/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp
+++ b/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp
@@ -33,6 +33,7 @@
#include "HTMLNames.h"
#include "core/dom/Element.h"
+#include "core/html/HTMLAreaElement.h"
#include "core/html/HTMLInputElement.h"
using namespace WebCore;
@@ -45,7 +46,7 @@ bool elementHasLegalLinkAttribute(const Element* element, const QualifiedName& a
if (attrName == srcAttr)
return element->hasTagName(imgTag) || element->hasTagName(scriptTag) || element->hasTagName(iframeTag) || element->hasTagName(frameTag) || (element->hasTagName(inputTag) && toHTMLInputElement(element)->isImageButton());
if (attrName == hrefAttr)
- return element->hasTagName(linkTag) || element->hasTagName(aTag) || element->hasTagName(areaTag);
+ return element->hasTagName(linkTag) || element->hasTagName(aTag) || isHTMLAreaElement(element);
if (attrName == actionAttr)
return element->hasTagName(formTag);
if (attrName == backgroundAttr)
« no previous file with comments | « no previous file | Source/core/accessibility/AXObjectCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698