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

Unified Diff: Source/core/html/HTMLAreaElement.cpp

Issue 198553002: Use new is*Element() helper functions even more in HTML code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 | « Source/core/html/HTMLAnchorElement.cpp ('k') | Source/core/html/HTMLDetailsElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLAreaElement.cpp
diff --git a/Source/core/html/HTMLAreaElement.cpp b/Source/core/html/HTMLAreaElement.cpp
index b56e728cded66edbaf62f4abfebae0fac6c0b8f2..350ff0e5f99e33750090739fdf8a0b8c2810d45a 100644
--- a/Source/core/html/HTMLAreaElement.cpp
+++ b/Source/core/html/HTMLAreaElement.cpp
@@ -181,13 +181,13 @@ Path HTMLAreaElement::getRegion(const LayoutSize& size) const
HTMLImageElement* HTMLAreaElement::imageElement() const
{
Element* mapElement = parentElement();
- while (mapElement && !mapElement->hasTagName(mapTag))
+ while (mapElement && !isHTMLMapElement(*mapElement))
mapElement = mapElement->parentElement();
if (!mapElement)
return 0;
- return toHTMLMapElement(mapElement)->imageElement();
+ return toHTMLMapElement(*mapElement).imageElement();
}
bool HTMLAreaElement::isKeyboardFocusable() const
« no previous file with comments | « Source/core/html/HTMLAnchorElement.cpp ('k') | Source/core/html/HTMLDetailsElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698