Index: Source/web/WebPluginContainerImpl.cpp |
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp |
index 4d0a677b996012523bd3f3f07d2d9603928110d2..8f298c2e81befe0245cdbc68a237110c5bd404cc 100644 |
--- a/Source/web/WebPluginContainerImpl.cpp |
+++ b/Source/web/WebPluginContainerImpl.cpp |
@@ -510,8 +510,8 @@ bool WebPluginContainerImpl::isRectTopmost(const WebRect& rect) |
LayoutPoint center = documentRect.center(); |
// Make the rect we're checking (the point surrounded by padding rects) contained inside the requested rect. (Note that -1/2 is 0.) |
LayoutSize padding((documentRect.width() - 1) / 2, (documentRect.height() - 1) / 2); |
- HitTestResult result = frame->eventHandler().hitTestResultAtPoint(center, HitTestRequest::ReadOnly | HitTestRequest::Active, padding); |
- const HitTestResult::NodeSet& nodes = result.rectBasedTestResult(); |
+ HitTestResult result = frame->eventHandler().hitTestResultAtPoint(center, HitTestRequest::ReadOnly | HitTestRequest::Active | HitTestRequest::ListBased, padding); |
+ const HitTestResult::NodeSet& nodes = result.listBasedTestResult(); |
if (nodes.size() != 1) |
return false; |
return nodes.first().get() == m_element; |