Index: Source/web/WebPluginContainerImpl.cpp |
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp |
index f9ada22df6e61510479b5c639df71d9d0a608d86..9a470ee2159acce02bc1ccf4a66e449318fa34b7 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; |