Index: Source/core/rendering/RenderLayer.cpp |
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp |
index 529dc2d8768362cb65cf9fefd23af17e67db04b4..f1454febe0fc9bf6baaf6c329ce7dabad89839f0 100644 |
--- a/Source/core/rendering/RenderLayer.cpp |
+++ b/Source/core/rendering/RenderLayer.cpp |
@@ -2519,7 +2519,7 @@ bool RenderLayer::hitTest(const HitTestRequest& request, const HitTestLocation& |
// Now determine if the result is inside an anchor - if the urlElement isn't already set. |
Node* node = result.innerNode(); |
if (node && !result.URLElement()) |
- result.setURLElement(toElement(node->enclosingLinkEventParentOrSelf())); |
+ result.setURLElement(node->enclosingLinkEventParentOrSelf()); |
// Now return whether we were inside this layer (this will always be true for the root |
// layer). |