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

Unified Diff: Source/core/rendering/RenderImage.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 | « Source/core/rendering/HitTestResult.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderImage.cpp
diff --git a/Source/core/rendering/RenderImage.cpp b/Source/core/rendering/RenderImage.cpp
index 7f126f87d9f0432541b70de4ab1740867c786185..25f505f955d24a810be5e878f86a037dace2068c 100644
--- a/Source/core/rendering/RenderImage.cpp
+++ b/Source/core/rendering/RenderImage.cpp
@@ -397,10 +397,10 @@ void RenderImage::paintAreaElementFocusRing(PaintInfo& paintInfo)
return;
Node* focusedNode = document->focusedNode();
- if (!focusedNode || !focusedNode->hasTagName(areaTag))
+ if (!focusedNode || !isHTMLAreaElement(focusedNode))
return;
- HTMLAreaElement* areaElement = static_cast<HTMLAreaElement*>(focusedNode);
+ HTMLAreaElement* areaElement = toHTMLAreaElement(focusedNode);
if (areaElement->imageElement() != node())
return;
« no previous file with comments | « Source/core/rendering/HitTestResult.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698