- Fixed http://bugs.webkit.org/show_bug.cgi?id=11343
REGRESSION (r16975): fast/events/objc-event-api is failing
When I moved the autoscroll code from FrameMac to Frame, I mistakingly changed the order of
a call to invalidateClick. This change moves it back to the sequence that existed before. This allows
the click count to get properly reset during a selection.
* page/Frame.cpp: (WebCore::Frame::handleMouseMoveEvent):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17111
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-10-18 Adele Peterson <adele@apple.com>
+
+ Reviewed by Beth.
+
+ - Fixed http://bugs.webkit.org/show_bug.cgi?id=11343
+ REGRESSION (r16975): fast/events/objc-event-api is failing
+
+ When I moved the autoscroll code from FrameMac to Frame, I mistakingly changed the order of
+ a call to invalidateClick. This change moves it back to the sequence that existed before. This allows
+ the click count to get properly reset during a selection.
+
+ * page/Frame.cpp: (WebCore::Frame::handleMouseMoveEvent):
+
2006-10-17 Geoffrey Garen <ggaren@apple.com>
Reviewed by Anders.
if (event.event().button() != 0 || !innerNode || !innerNode->renderer())
return;
+ ASSERT(mouseDownMayStartSelect() || mouseDownMayStartAutoscroll());
+
+ setMouseDownMayStartDrag(false);
+ view()->invalidateClick();
+
if (mouseDownMayStartAutoscroll()) {
// If the selection is contained in a layer that can scroll, that layer should handle the autoscroll
// Otherwise, let the bridge handle it so the view can scroll itself.
renderer = renderer->parent();
if (renderer)
handleAutoscroll(renderer);
-
- setMouseDownMayStartDrag(false);
- view()->invalidateClick();
}
if (mouseDownMayStartSelect() && innerNode->renderer()->shouldSelect()) {