Diff
Modified: trunk/Source/WTF/ChangeLog (247669 => 247670)
--- trunk/Source/WTF/ChangeLog 2019-07-20 18:53:57 UTC (rev 247669)
+++ trunk/Source/WTF/ChangeLog 2019-07-20 20:11:06 UTC (rev 247670)
@@ -1,3 +1,14 @@
+2019-07-20 Alexander Mikhaylenko <[email protected]>
+
+ REGRESSION(r246033/r246496): [GTK] Kinetic scrolling doesn't work
+ https://bugs.webkit.org/show_bug.cgi?id=199322
+
+ Reviewed by Michael Catanzaro.
+
+ Introduce ENABLE_KINETIC_SCROLLING to explicitly always have kinetic scrolling on GTK.
+
+ * wtf/Platform.h:
+
2019-07-18 Youenn Fablet <[email protected]>
Make sure to set kCTFontFallbackOptionAttribute to kCTFontFallbackOptionSystem for system fonts
Modified: trunk/Source/WTF/wtf/Platform.h (247669 => 247670)
--- trunk/Source/WTF/wtf/Platform.h 2019-07-20 18:53:57 UTC (rev 247669)
+++ trunk/Source/WTF/wtf/Platform.h 2019-07-20 20:11:06 UTC (rev 247670)
@@ -1502,6 +1502,10 @@
#define ENABLE_FULL_KEYBOARD_ACCESS 1
#endif
+#if (PLATFORM(COCOA) && ENABLE(ASYNC_SCROLLING)) || PLATFORM(GTK)
+#define ENABLE_KINETIC_SCROLLING 1
+#endif
+
#if PLATFORM(IOS_FAMILY) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400)
#define HAVE_AUTHORIZATION_STATUS_FOR_MEDIA_TYPE 1
#endif
Modified: trunk/Source/WebCore/ChangeLog (247669 => 247670)
--- trunk/Source/WebCore/ChangeLog 2019-07-20 18:53:57 UTC (rev 247669)
+++ trunk/Source/WebCore/ChangeLog 2019-07-20 20:11:06 UTC (rev 247670)
@@ -1,3 +1,18 @@
+2019-07-20 Alexander Mikhaylenko <[email protected]>
+
+ REGRESSION(r246033/r246496): [GTK] Kinetic scrolling doesn't work
+ https://bugs.webkit.org/show_bug.cgi?id=199322
+
+ Reviewed by Michael Catanzaro.
+
+ Check ENABLE(KINETIC_SCROLLING) instead of ENABLE(ASYNC_SCROLLING) for kinetic scrolling.
+
+ * platform/PlatformWheelEvent.h:
+ * platform/generic/ScrollAnimatorGeneric.cpp:
+ (WebCore::ScrollAnimatorGeneric::handleWheelEvent):
+ * platform/gtk/PlatformWheelEventGtk.cpp:
+ (WebCore::PlatformWheelEvent::PlatformWheelEvent):
+
2019-07-20 Zalan Bujtas <[email protected]>
[LFC][TFC] Introduce table formatting context.
Modified: trunk/Source/WebCore/platform/PlatformWheelEvent.h (247669 => 247670)
--- trunk/Source/WebCore/platform/PlatformWheelEvent.h 2019-07-20 18:53:57 UTC (rev 247669)
+++ trunk/Source/WebCore/platform/PlatformWheelEvent.h 2019-07-20 20:11:06 UTC (rev 247670)
@@ -48,7 +48,7 @@
ScrollByPixelWheelEvent,
};
-#if ENABLE(ASYNC_SCROLLING)
+#if ENABLE(KINETIC_SCROLLING)
enum PlatformWheelEventPhase : uint8_t {
PlatformWheelEventPhaseNone = 0,
@@ -146,7 +146,7 @@
bool useLatchedEventElement() const { return false; }
#endif
-#if ENABLE(ASYNC_SCROLLING)
+#if ENABLE(KINETIC_SCROLLING)
PlatformWheelEventPhase phase() const { return m_phase; }
PlatformWheelEventPhase momentumPhase() const { return m_momentumPhase; }
bool isEndOfNonMomentumScroll() const;
@@ -172,7 +172,7 @@
// Scrolling velocity in pixels per second.
FloatSize m_scrollingVelocity;
-#if ENABLE(ASYNC_SCROLLING)
+#if ENABLE(KINETIC_SCROLLING)
PlatformWheelEventPhase m_phase { PlatformWheelEventPhaseNone };
PlatformWheelEventPhase m_momentumPhase { PlatformWheelEventPhaseNone };
#endif
@@ -210,6 +210,10 @@
return m_phase == PlatformWheelEventPhaseNone && m_momentumPhase == PlatformWheelEventPhaseEnded;
}
+#endif // ENABLE(ASYNC_SCROLLING)
+
+#if ENABLE(KINETIC_SCROLLING)
+
inline bool PlatformWheelEvent::isEndOfNonMomentumScroll() const
{
return m_phase == PlatformWheelEventPhaseEnded && m_momentumPhase == PlatformWheelEventPhaseNone;
@@ -226,6 +230,6 @@
return isTransitioningToMomentumScroll() ? FloatPoint(m_wheelTicksX, m_wheelTicksY) : FloatPoint();
}
-#endif // ENABLE(ASYNC_SCROLLING)
+#endif // ENABLE(KINETIC_SCROLLING)
} // namespace WebCore
Modified: trunk/Source/WebCore/platform/generic/ScrollAnimatorGeneric.cpp (247669 => 247670)
--- trunk/Source/WebCore/platform/generic/ScrollAnimatorGeneric.cpp 2019-07-20 18:53:57 UTC (rev 247669)
+++ trunk/Source/WebCore/platform/generic/ScrollAnimatorGeneric.cpp 2019-07-20 20:11:06 UTC (rev 247670)
@@ -132,7 +132,7 @@
return (event.timestamp() - otherEvent.timestamp()) > scrollCaptureThreshold;
});
-#if ENABLE(ASYNC_SCROLLING)
+#if ENABLE(KINETIC_SCROLLING)
if (event.isEndOfNonMomentumScroll()) {
// We don't need to add the event to the history as its delta will be (0, 0).
static_cast<ScrollAnimationKinetic*>(m_kineticAnimation.get())->start(m_currentPosition, computeVelocity(), m_scrollableArea.horizontalScrollbar(), m_scrollableArea.verticalScrollbar());
Modified: trunk/Source/WebCore/platform/gtk/PlatformWheelEventGtk.cpp (247669 => 247670)
--- trunk/Source/WebCore/platform/gtk/PlatformWheelEventGtk.cpp 2019-07-20 18:53:57 UTC (rev 247669)
+++ trunk/Source/WebCore/platform/gtk/PlatformWheelEventGtk.cpp 2019-07-20 20:11:06 UTC (rev 247670)
@@ -92,11 +92,11 @@
m_wheelTicksX = m_deltaX;
m_wheelTicksY = m_deltaY;
-#if ENABLE(ASYNC_SCROLLING)
+#if ENABLE(KINETIC_SCROLLING)
m_phase = gdk_event_is_scroll_stop_event(reinterpret_cast<GdkEvent*>(event)) ?
PlatformWheelEventPhaseEnded :
PlatformWheelEventPhaseChanged;
-#endif // ENABLE(ASYNC_SCROLLING)
+#endif // ENABLE(KINETIC_SCROLLING)
gdouble x, y, rootX, rootY;
gdk_event_get_coords(reinterpret_cast<GdkEvent*>(event), &x, &y);
Modified: trunk/Source/WebKit/ChangeLog (247669 => 247670)
--- trunk/Source/WebKit/ChangeLog 2019-07-20 18:53:57 UTC (rev 247669)
+++ trunk/Source/WebKit/ChangeLog 2019-07-20 20:11:06 UTC (rev 247670)
@@ -1,3 +1,15 @@
+2019-07-20 Alexander Mikhaylenko <[email protected]>
+
+ REGRESSION(r246033/r246496): [GTK] Kinetic scrolling doesn't work
+ https://bugs.webkit.org/show_bug.cgi?id=199322
+
+ Reviewed by Michael Catanzaro.
+
+ Check ENABLE(KINETIC_SCROLLING) instead of ENABLE(ASYNC_SCROLLING) when setting wheel event phase and momentum phase.
+
+ * Shared/WebEventConversion.cpp:
+ (WebKit::WebKit2PlatformWheelEvent::WebKit2PlatformWheelEvent):
+
2019-07-20 Zalan Bujtas <[email protected]>
[Text autosizing] Do not nuke the style on dynamicViewportSizeUpdate
Modified: trunk/Source/WebKit/Shared/WebEventConversion.cpp (247669 => 247670)
--- trunk/Source/WebKit/Shared/WebEventConversion.cpp 2019-07-20 18:53:57 UTC (rev 247669)
+++ trunk/Source/WebKit/Shared/WebEventConversion.cpp 2019-07-20 20:11:06 UTC (rev 247670)
@@ -157,7 +157,7 @@
m_wheelTicksY = webEvent.wheelTicks().height();
m_granularity = (webEvent.granularity() == WebWheelEvent::ScrollByPageWheelEvent) ? WebCore::ScrollByPageWheelEvent : WebCore::ScrollByPixelWheelEvent;
m_directionInvertedFromDevice = webEvent.directionInvertedFromDevice();
-#if (PLATFORM(COCOA) || PLATFORM(GTK)) && ENABLE(ASYNC_SCROLLING)
+#if ENABLE(KINETIC_SCROLLING)
m_phase = static_cast<WebCore::PlatformWheelEventPhase>(webEvent.phase());
m_momentumPhase = static_cast<WebCore::PlatformWheelEventPhase>(webEvent.momentumPhase());
#endif