Index: Source/WebCore/page/EventHandler.cpp |
=================================================================== |
--- Source/WebCore/page/EventHandler.cpp (revision 136282) |
+++ Source/WebCore/page/EventHandler.cpp (working copy) |
@@ -1548,8 +1548,8 @@ |
m_mousePressNode = mev.targetNode(); |
- Frame* subframe = subframeForHitTestResult(mev); |
- if (subframe && passMousePressEventToSubframe(mev, subframe)) { |
+ RefPtr<Frame> subframe = subframeForHitTestResult(mev); |
+ if (subframe && passMousePressEventToSubframe(mev, subframe.get())) { |
// Start capturing future events for this frame. We only do this if we didn't clear |
// the m_mousePressed flag, which may happen if an AppKit widget entered a modal event loop. |
m_capturesDragging = subframe->eventHandler()->capturesDragging(); |