Title: [144531] trunk/Source/WebCore
- Revision
- 144531
- Author
- [email protected]
- Date
- 2013-03-01 22:41:41 -0800 (Fri, 01 Mar 2013)
Log Message
Remove unused member variable m_useLatchedEventNode from PlatformWheelEvent.h
https://bugs.webkit.org/show_bug.cgi?id=107314
Reviewed by Darin Adler.
EventHandler::handleGestureScrollCore() was removed in http://trac.webkit.org/changeset/140177,
and this was the only place where the member variable |m_useLatchedEventNode| in
PlatformWheelEvent was mutated. This variable is no longer needed and so it should be removed.
No change in behavior, so no new tests needed.
* platform/PlatformWheelEvent.h:
(WebCore::PlatformWheelEvent::PlatformWheelEvent):
(WebCore::PlatformWheelEvent::useLatchedEventNode):
(PlatformWheelEvent):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (144530 => 144531)
--- trunk/Source/WebCore/ChangeLog 2013-03-02 06:36:29 UTC (rev 144530)
+++ trunk/Source/WebCore/ChangeLog 2013-03-02 06:41:41 UTC (rev 144531)
@@ -1,3 +1,21 @@
+2013-03-01 Terry Anderson <[email protected]>
+
+ Remove unused member variable m_useLatchedEventNode from PlatformWheelEvent.h
+ https://bugs.webkit.org/show_bug.cgi?id=107314
+
+ Reviewed by Darin Adler.
+
+ EventHandler::handleGestureScrollCore() was removed in http://trac.webkit.org/changeset/140177,
+ and this was the only place where the member variable |m_useLatchedEventNode| in
+ PlatformWheelEvent was mutated. This variable is no longer needed and so it should be removed.
+
+ No change in behavior, so no new tests needed.
+
+ * platform/PlatformWheelEvent.h:
+ (WebCore::PlatformWheelEvent::PlatformWheelEvent):
+ (WebCore::PlatformWheelEvent::useLatchedEventNode):
+ (PlatformWheelEvent):
+
2013-02-28 Alexey Proskuryakov <[email protected]>
Reduce amount of rebuilding when touching networking headers
Modified: trunk/Source/WebCore/platform/PlatformWheelEvent.h (144530 => 144531)
--- trunk/Source/WebCore/platform/PlatformWheelEvent.h 2013-03-02 06:36:29 UTC (rev 144530)
+++ trunk/Source/WebCore/platform/PlatformWheelEvent.h 2013-03-02 06:41:41 UTC (rev 144531)
@@ -82,7 +82,6 @@
, m_wheelTicksY(0)
, m_granularity(ScrollByPixelWheelEvent)
, m_directionInvertedFromDevice(false)
- , m_useLatchedEventNode(false)
#if PLATFORM(MAC) || PLATFORM(CHROMIUM)
, m_hasPreciseScrollingDeltas(false)
#endif
@@ -106,7 +105,6 @@
, m_wheelTicksY(wheelTicksY)
, m_granularity(granularity)
, m_directionInvertedFromDevice(false)
- , m_useLatchedEventNode(false)
#if PLATFORM(MAC) || PLATFORM(CHROMIUM)
, m_hasPreciseScrollingDeltas(false)
#endif
@@ -145,8 +143,6 @@
bool directionInvertedFromDevice() const { return m_directionInvertedFromDevice; }
- void setUseLatchedEventNode(bool b) { m_useLatchedEventNode = b; }
-
#if PLATFORM(GTK)
explicit PlatformWheelEvent(GdkEventScroll*);
#endif
@@ -165,9 +161,9 @@
unsigned scrollCount() const { return m_scrollCount; }
float unacceleratedScrollingDeltaX() const { return m_unacceleratedScrollingDeltaX; }
float unacceleratedScrollingDeltaY() const { return m_unacceleratedScrollingDeltaY; }
- bool useLatchedEventNode() const { return m_useLatchedEventNode || (m_momentumPhase == PlatformWheelEventPhaseBegan || m_momentumPhase == PlatformWheelEventPhaseChanged); }
+ bool useLatchedEventNode() const { return m_momentumPhase == PlatformWheelEventPhaseBegan || m_momentumPhase == PlatformWheelEventPhaseChanged; }
#else
- bool useLatchedEventNode() const { return m_useLatchedEventNode; }
+ bool useLatchedEventNode() const { return false; }
#endif
#if PLATFORM(WIN)
@@ -188,7 +184,6 @@
float m_wheelTicksY;
PlatformWheelEventGranularity m_granularity;
bool m_directionInvertedFromDevice;
- bool m_useLatchedEventNode;
#if PLATFORM(MAC) || PLATFORM(CHROMIUM)
bool m_hasPreciseScrollingDeltas;
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes