Index: Source/web/ChromeClientImpl.cpp |
diff --git a/Source/web/ChromeClientImpl.cpp b/Source/web/ChromeClientImpl.cpp |
index 9b32c985ab147a8426a7d816f37b7025e737c104..b7e4aa55503b7206ed048ef834d72dd5cf5fc611 100644 |
--- a/Source/web/ChromeClientImpl.cpp |
+++ b/Source/web/ChromeClientImpl.cpp |
@@ -554,11 +554,11 @@ void ChromeClientImpl::mouseDidMoveOverElement( |
WebURL url; |
// Find out if the mouse is over a link, and if so, let our UI know... |
- if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) |
+ if (result.isLiveLink() && !result.absoluteLinkURL().string().isEmpty()) { |
url = result.absoluteLinkURL(); |
- else if (result.innerNonSharedNode() |
- && (result.innerNonSharedNode()->hasTagName(HTMLNames::objectTag) |
- || result.innerNonSharedNode()->hasTagName(HTMLNames::embedTag))) { |
+ } else if (result.innerNonSharedNode() |
+ && (isHTMLObjectElement(*result.innerNonSharedNode()) |
+ || isHTMLEmbedElement(*result.innerNonSharedNode()))) { |
RenderObject* object = result.innerNonSharedNode()->renderer(); |
if (object && object->isWidget()) { |
Widget* widget = toRenderWidget(object)->widget(); |