https://bugs.webkit.org/show_bug.cgi?id=77123
Reviewed by Beth Dakin.
Source/WebCore:
* platform/PlatformWheelEvent.h:
():
* platform/mac/PlatformEventFactoryMac.mm:
(WebCore::phaseForEvent):
Source/WebKit2:
* Shared/WebEvent.h:
():
* Shared/mac/WebEventFactory.mm:
(WebKit::phaseForEvent):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@106021
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-26 Anders Carlsson <andersca@apple.com>
+
+ WebWheelEvent::Phase and PlatformWheelEvent::Phase declarations should match AppKit
+ https://bugs.webkit.org/show_bug.cgi?id=77123
+
+ Reviewed by Beth Dakin.
+
+ * platform/PlatformWheelEvent.h:
+ ():
+ * platform/mac/PlatformEventFactoryMac.mm:
+ (WebCore::phaseForEvent):
+
2012-01-26 Daniel Cheng <dcheng@chromium.org>
Revert code changes from r105800
#if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN))
enum PlatformWheelEventPhase {
PlatformWheelEventPhaseNone = 0,
- PlatformWheelEventPhaseBegan = 1 << 1,
- PlatformWheelEventPhaseStationary = 1 << 2,
- PlatformWheelEventPhaseChanged = 1 << 3,
- PlatformWheelEventPhaseEnded = 1 << 4,
- PlatformWheelEventPhaseCancelled = 1 << 5,
+ PlatformWheelEventPhaseBegan = 1 << 0,
+ PlatformWheelEventPhaseStationary = 1 << 1,
+ PlatformWheelEventPhaseChanged = 1 << 2,
+ PlatformWheelEventPhaseEnded = 1 << 3,
+ PlatformWheelEventPhaseCancelled = 1 << 4,
+ PlatformWheelEventPhaseMayBegin = 1 << 5,
};
#endif
phase |= PlatformWheelEventPhaseEnded;
if ([event phase] & NSEventPhaseCancelled)
phase |= PlatformWheelEventPhaseCancelled;
+#if !defined(BUILDING_ON_LION)
+ if ([event momentumPhase] & NSEventPhaseMayBegin)
+ phase |= PlatformWheelEventPhaseMayBegin;
+#endif
+
return static_cast<PlatformWheelEventPhase>(phase);
#else
UNUSED_PARAM(event);
+2012-01-26 Anders Carlsson <andersca@apple.com>
+
+ WebWheelEvent::Phase and PlatformWheelEvent::Phase declarations should match AppKit
+ https://bugs.webkit.org/show_bug.cgi?id=77123
+
+ Reviewed by Beth Dakin.
+
+ * Shared/WebEvent.h:
+ ():
+ * Shared/mac/WebEventFactory.mm:
+ (WebKit::phaseForEvent):
+
2012-01-26 Andras Becsi <andras.becsi@nokia.com>
ASSERT(!m_overlay) reached in TapHighlightController.cpp:73
#if PLATFORM(MAC)
enum Phase {
PhaseNone = 0,
- PhaseBegan = 1 << 1,
- PhaseStationary = 1 << 2,
- PhaseChanged = 1 << 3,
- PhaseEnded = 1 << 4,
- PhaseCancelled = 1 << 5,
+ PhaseBegan = 1 << 0,
+ PhaseStationary = 1 << 1,
+ PhaseChanged = 1 << 2,
+ PhaseEnded = 1 << 3,
+ PhaseCancelled = 1 << 4,
+ PhaseMayBegin = 1 << 5,
};
#endif
phase |= WebWheelEvent::PhaseEnded;
if ([event phase] & NSEventPhaseCancelled)
phase |= WebWheelEvent::PhaseCancelled;
+#if !defined(BUILDING_ON_LION)
+ if ([event phase] & NSEventPhaseMayBegin)
+ phase |= WebWheelEvent::PhaseMayBegin;
+#endif
+
return static_cast<WebWheelEvent::Phase>(phase);
#else
return WebWheelEvent::PhaseNone;