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

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

Issue 18888002: Introduce isHTMLAnchorElement and toHTMLAnchorElement (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/AccessibilityNodeObject.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 2da0d1c16ba1eb697866612bc48d6a17a985bd22..2e8c3f4b7f17bf341e8dc3f0b92147496d6a4811 100644
--- a/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp
+++ b/Source/WebKit/chromium/src/DOMUtilitiesPrivate.cpp
@@ -46,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) || isHTMLAreaElement(element);
+ return element->hasTagName(linkTag) || isHTMLAnchorElement(element) || isHTMLAreaElement(element);
if (attrName == actionAttr)
return element->hasTagName(formTag);
if (attrName == backgroundAttr)
« no previous file with comments | « no previous file | Source/core/accessibility/AccessibilityNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698