Diff
Modified: trunk/LayoutTests/ChangeLog (287226 => 287227)
--- trunk/LayoutTests/ChangeLog 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/LayoutTests/ChangeLog 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1,3 +1,18 @@
+2021-12-17 Simon Fraser <[email protected]>
+
+ Rename MockScrollAnimatorEnabled to MockScrollbarsControllerEnabled
+ https://bugs.webkit.org/show_bug.cgi?id=234452
+
+ Reviewed by Anders Carlsson.
+
+ The class formerly known as MockScrollAnimatorEnabled is used for logging when scrollbars
+ get events, so fix the name. It's a subclass of ScrollbarsController.
+
+ * fast/scrolling/scroll-animator-basic-events.html:
+ * fast/scrolling/scroll-animator-overlay-scrollbars-clicked.html:
+ * fast/scrolling/scroll-animator-overlay-scrollbars-hovered.html:
+ * fast/scrolling/scroll-animator-select-list-events.html:
+
2021-12-17 Alan Bujtas <[email protected]>
Rebaseline after r287199.
Modified: trunk/LayoutTests/fast/scrolling/scroll-animator-basic-events.html (287226 => 287227)
--- trunk/LayoutTests/fast/scrolling/scroll-animator-basic-events.html 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/LayoutTests/fast/scrolling/scroll-animator-basic-events.html 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1,4 +1,4 @@
-<html> <!-- webkit-test-runner [ MockScrollAnimatorEnabled=true ] -->
+<html> <!-- webkit-test-runner [ MockScrollbarsControllerEnabled=true ] -->
<style>
#scrollme {
width: 100px;
Modified: trunk/LayoutTests/fast/scrolling/scroll-animator-overlay-scrollbars-clicked.html (287226 => 287227)
--- trunk/LayoutTests/fast/scrolling/scroll-animator-overlay-scrollbars-clicked.html 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/LayoutTests/fast/scrolling/scroll-animator-overlay-scrollbars-clicked.html 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1,4 +1,4 @@
-<html> <!-- webkit-test-runner [ MockScrollAnimatorEnabled=true ] -->
+<html> <!-- webkit-test-runner [ MockScrollbarsControllerEnabled=true ] -->
<script src=""
<script>
jsTestIsAsync = true;
Modified: trunk/LayoutTests/fast/scrolling/scroll-animator-overlay-scrollbars-hovered.html (287226 => 287227)
--- trunk/LayoutTests/fast/scrolling/scroll-animator-overlay-scrollbars-hovered.html 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/LayoutTests/fast/scrolling/scroll-animator-overlay-scrollbars-hovered.html 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1,4 +1,4 @@
-<html> <!-- webkit-test-runner [ MockScrollAnimatorEnabled=true ] -->
+<html> <!-- webkit-test-runner [ MockScrollbarsControllerEnabled=true ] -->
<script src=""
<script>
jsTestIsAsync = true;
Modified: trunk/LayoutTests/fast/scrolling/scroll-animator-select-list-events.html (287226 => 287227)
--- trunk/LayoutTests/fast/scrolling/scroll-animator-select-list-events.html 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/LayoutTests/fast/scrolling/scroll-animator-select-list-events.html 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1,4 +1,4 @@
-<html> <!-- webkit-test-runner [ MockScrollAnimatorEnabled=true ] -->
+<html> <!-- webkit-test-runner [ MockScrollbarsControllerEnabled=true ] -->
<script src=""
<script>
jsTestIsAsync = true;
Modified: trunk/Source/WTF/ChangeLog (287226 => 287227)
--- trunk/Source/WTF/ChangeLog 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WTF/ChangeLog 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1,3 +1,15 @@
+2021-12-17 Simon Fraser <[email protected]>
+
+ Rename MockScrollAnimatorEnabled to MockScrollbarsControllerEnabled
+ https://bugs.webkit.org/show_bug.cgi?id=234452
+
+ Reviewed by Anders Carlsson.
+
+ The class formerly known as MockScrollAnimatorEnabled is used for logging when scrollbars
+ get events, so fix the name. It's a subclass of ScrollbarsController.
+
+ * Scripts/Preferences/WebPreferences.yaml:
+
2021-12-17 Yusuke Suzuki <[email protected]>
[WTF] Introduce TrailingArray
Modified: trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml (287226 => 287227)
--- trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WTF/Scripts/Preferences/WebPreferences.yaml 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1520,7 +1520,7 @@
WebKit:
default: true
-MockScrollAnimatorEnabled:
+MockScrollbarsControllerEnabled:
type: bool
defaultValue:
WebKitLegacy:
Modified: trunk/Source/WebCore/ChangeLog (287226 => 287227)
--- trunk/Source/WebCore/ChangeLog 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebCore/ChangeLog 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1,3 +1,40 @@
+2021-12-17 Simon Fraser <[email protected]>
+
+ Rename MockScrollAnimatorEnabled to MockScrollbarsControllerEnabled
+ https://bugs.webkit.org/show_bug.cgi?id=234452
+
+ Reviewed by Anders Carlsson.
+
+ The class formerly known as MockScrollAnimatorEnabled is used for logging when scrollbars
+ get events, so fix the name. It's a subclass of ScrollbarsController.
+
+ * page/FrameView.cpp:
+ (WebCore::FrameView::mockScrollbarsControllerEnabled const):
+ (WebCore::FrameView::logMockScrollbarsControllerMessage const):
+ (WebCore::FrameView::mockScrollAnimatorEnabled const): Deleted.
+ (WebCore::FrameView::logMockScrollAnimatorMessage const): Deleted.
+ * page/FrameView.h:
+ * platform/ScrollableArea.cpp:
+ (WebCore::ScrollableArea::scrollbarsController const):
+ * platform/ScrollableArea.h:
+ (WebCore::ScrollableArea::mockScrollbarsControllerEnabled const):
+ (WebCore::ScrollableArea::logMockScrollbarsControllerMessage const):
+ (WebCore::ScrollableArea::mockScrollAnimatorEnabled const): Deleted.
+ (WebCore::ScrollableArea::logMockScrollAnimatorMessage const): Deleted.
+ * platform/mock/ScrollbarsControllerMock.h:
+ * rendering/RenderLayerScrollableArea.cpp:
+ (WebCore::RenderLayerScrollableArea::mockScrollbarsControllerEnabled const):
+ (WebCore::RenderLayerScrollableArea::logMockScrollbarsControllerMessage const):
+ (WebCore::RenderLayerScrollableArea::mockScrollAnimatorEnabled const): Deleted.
+ (WebCore::RenderLayerScrollableArea::logMockScrollAnimatorMessage const): Deleted.
+ * rendering/RenderLayerScrollableArea.h:
+ * rendering/RenderListBox.cpp:
+ (WebCore::RenderListBox::mockScrollbarsControllerEnabled const):
+ (WebCore::RenderListBox::logMockScrollbarsControllerMessage const):
+ (WebCore::RenderListBox::mockScrollAnimatorEnabled const): Deleted.
+ (WebCore::RenderListBox::logMockScrollAnimatorMessage const): Deleted.
+ * rendering/RenderListBox.h:
+
2021-12-18 Chris Dumez <[email protected]>
Convert ProtectionSpace enums into enum classes
Modified: trunk/Source/WebCore/page/FrameView.cpp (287226 => 287227)
--- trunk/Source/WebCore/page/FrameView.cpp 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebCore/page/FrameView.cpp 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1467,12 +1467,12 @@
return false;
}
-bool FrameView::mockScrollAnimatorEnabled() const
+bool FrameView::mockScrollbarsControllerEnabled() const
{
- return frame().settings().mockScrollAnimatorEnabled();
+ return frame().settings().mockScrollbarsControllerEnabled();
}
-void FrameView::logMockScrollAnimatorMessage(const String& message) const
+void FrameView::logMockScrollbarsControllerMessage(const String& message) const
{
auto document = frame().document();
if (!document)
Modified: trunk/Source/WebCore/page/FrameView.h (287226 => 287227)
--- trunk/Source/WebCore/page/FrameView.h 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebCore/page/FrameView.h 2021-12-18 19:04:53 UTC (rev 287227)
@@ -791,8 +791,8 @@
#endif
bool usesCompositedScrolling() const final;
- bool mockScrollAnimatorEnabled() const final;
- void logMockScrollAnimatorMessage(const String&) const final;
+ bool mockScrollbarsControllerEnabled() const final;
+ void logMockScrollbarsControllerMessage(const String&) const final;
bool styleHidesScrollbarWithOrientation(ScrollbarOrientation) const;
bool horizontalScrollbarHiddenByStyle() const final;
Modified: trunk/Source/WebCore/platform/ScrollableArea.cpp (287226 => 287227)
--- trunk/Source/WebCore/platform/ScrollableArea.cpp 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebCore/platform/ScrollableArea.cpp 2021-12-18 19:04:53 UTC (rev 287227)
@@ -71,10 +71,9 @@
ScrollbarsController& ScrollableArea::scrollbarsController() const
{
if (!m_scrollbarsController) {
- // Note that mockScrollAnimatorEnabled is a misnomer.
- if (mockScrollAnimatorEnabled()) {
+ if (mockScrollbarsControllerEnabled()) {
m_scrollbarsController = makeUnique<ScrollbarsControllerMock>(const_cast<ScrollableArea&>(*this), [this](const String& message) {
- logMockScrollAnimatorMessage(message);
+ logMockScrollbarsControllerMessage(message);
});
} else
m_scrollbarsController = ScrollbarsController::create(const_cast<ScrollableArea&>(*this));
Modified: trunk/Source/WebCore/platform/ScrollableArea.h (287226 => 287227)
--- trunk/Source/WebCore/platform/ScrollableArea.h 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebCore/platform/ScrollableArea.h 2021-12-18 19:04:53 UTC (rev 287227)
@@ -357,8 +357,8 @@
void verticalScrollbarLayerDidChange();
void horizontalScrollbarLayerDidChange();
- virtual bool mockScrollAnimatorEnabled() const { return false; }
- virtual void logMockScrollAnimatorMessage(const String&) const { };
+ virtual bool mockScrollbarsControllerEnabled() const { return false; }
+ virtual void logMockScrollbarsControllerMessage(const String&) const { };
virtual bool shouldPlaceVerticalScrollbarOnLeft() const = 0;
Modified: trunk/Source/WebCore/platform/mock/ScrollbarsControllerMock.h (287226 => 287227)
--- trunk/Source/WebCore/platform/mock/ScrollbarsControllerMock.h 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebCore/platform/mock/ScrollbarsControllerMock.h 2021-12-18 19:04:53 UTC (rev 287227)
@@ -37,8 +37,7 @@
// A Mock implementation of ScrollbarsController used to test the scroll events
// received by the scrollbar controller. Tests can enable this mock object using
-// the internal setting setUsesMockScrollAnimator().
-// FIXME: setUsesMockScrollAnimator() needs renaming.
+// the internal setting setMockScrollbarsControllerEnabled().
class ScrollbarsControllerMock final : public ScrollbarsController {
WTF_MAKE_FAST_ALLOCATED;
Modified: trunk/Source/WebCore/rendering/RenderLayerScrollableArea.cpp (287226 => 287227)
--- trunk/Source/WebCore/rendering/RenderLayerScrollableArea.cpp 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebCore/rendering/RenderLayerScrollableArea.cpp 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1839,12 +1839,12 @@
m_layer.updateLayerPositionsAfterScroll(&geometryMap, RenderLayer::IsOverflowScroll);
}
-bool RenderLayerScrollableArea::mockScrollAnimatorEnabled() const
+bool RenderLayerScrollableArea::mockScrollbarsControllerEnabled() const
{
- return m_layer.renderer().settings().mockScrollAnimatorEnabled();
+ return m_layer.renderer().settings().mockScrollbarsControllerEnabled();
}
-void RenderLayerScrollableArea::logMockScrollAnimatorMessage(const String& message) const
+void RenderLayerScrollableArea::logMockScrollbarsControllerMessage(const String& message) const
{
m_layer.renderer().document().addConsoleMessage(MessageSource::Other, MessageLevel::Debug, "RenderLayer: " + message);
}
Modified: trunk/Source/WebCore/rendering/RenderLayerScrollableArea.h (287226 => 287227)
--- trunk/Source/WebCore/rendering/RenderLayerScrollableArea.h 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebCore/rendering/RenderLayerScrollableArea.h 2021-12-18 19:04:53 UTC (rev 287227)
@@ -193,8 +193,8 @@
bool isRubberBandInProgress() const final;
bool forceUpdateScrollbarsOnMainThreadForPerformanceTesting() const final;
bool isScrollSnapInProgress() const final;
- bool mockScrollAnimatorEnabled() const final;
- void logMockScrollAnimatorMessage(const String&) const final;
+ bool mockScrollbarsControllerEnabled() const final;
+ void logMockScrollbarsControllerMessage(const String&) const final;
String debugDescription() const final;
void didStartScrollAnimation() final;
Modified: trunk/Source/WebCore/rendering/RenderListBox.cpp (287226 => 287227)
--- trunk/Source/WebCore/rendering/RenderListBox.cpp 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebCore/rendering/RenderListBox.cpp 2021-12-18 19:04:53 UTC (rev 287227)
@@ -893,12 +893,12 @@
return absoluteBoundingBoxRect();
}
-bool RenderListBox::mockScrollAnimatorEnabled() const
+bool RenderListBox::mockScrollbarsControllerEnabled() const
{
- return settings().mockScrollAnimatorEnabled();
+ return settings().mockScrollbarsControllerEnabled();
}
-void RenderListBox::logMockScrollAnimatorMessage(const String& message) const
+void RenderListBox::logMockScrollbarsControllerMessage(const String& message) const
{
document().addConsoleMessage(MessageSource::Other, MessageLevel::Debug, "RenderListBox: " + message);
}
Modified: trunk/Source/WebCore/rendering/RenderListBox.h (287226 => 287227)
--- trunk/Source/WebCore/rendering/RenderListBox.h 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebCore/rendering/RenderListBox.h 2021-12-18 19:04:53 UTC (rev 287227)
@@ -138,8 +138,8 @@
bool isScrollableOrRubberbandable() final;
bool hasScrollableOrRubberbandableAncestor() final;
IntRect scrollableAreaBoundingBox(bool* = nullptr) const final;
- bool mockScrollAnimatorEnabled() const final;
- void logMockScrollAnimatorMessage(const String&) const final;
+ bool mockScrollbarsControllerEnabled() const final;
+ void logMockScrollbarsControllerMessage(const String&) const final;
String debugDescription() const final;
void didStartScrollAnimation() final;
Modified: trunk/Source/WebKitLegacy/win/WebPreferences.cpp (287226 => 287227)
--- trunk/Source/WebKitLegacy/win/WebPreferences.cpp 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebKitLegacy/win/WebPreferences.cpp 2021-12-18 19:04:53 UTC (rev 287227)
@@ -2637,8 +2637,8 @@
return boolValueForKey("WebKitCanvasColorSpaceEnabled");
}
-bool WebPreferences::mockScrollAnimatorEnabled()
+bool WebPreferences::mockScrollbarsControllerEnabled()
{
- return boolValueForKey("WebKitMockScrollAnimatorEnabled");
+ return boolValueForKey("WebKitMockScrollbarsControllerEnabled");
}
Modified: trunk/Source/WebKitLegacy/win/WebPreferences.h (287226 => 287227)
--- trunk/Source/WebKitLegacy/win/WebPreferences.h 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebKitLegacy/win/WebPreferences.h 2021-12-18 19:04:53 UTC (rev 287227)
@@ -346,7 +346,7 @@
// The following preference accessors are not exposed via IWebPreferences* as they are only
// needed for testing purposes and can be toggled via the set*PreferenceForTesting functions.
bool canvasColorSpaceEnabled();
- bool mockScrollAnimatorEnabled();
+ bool mockScrollbarsControllerEnabled();
private:
WebPreferences();
Modified: trunk/Source/WebKitLegacy/win/WebView.cpp (287226 => 287227)
--- trunk/Source/WebKitLegacy/win/WebView.cpp 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Source/WebKitLegacy/win/WebView.cpp 2021-12-18 19:04:53 UTC (rev 287227)
@@ -5600,7 +5600,7 @@
settings.setOverscrollBehaviorEnabled(!!enabled);
settings.setCanvasColorSpaceEnabled(m_preferences->canvasColorSpaceEnabled());
- settings.setMockScrollAnimatorEnabled(m_preferences->mockScrollAnimatorEnabled());
+ settings.setMockScrollbarsControllerEnabled(m_preferences->mockScrollbarsControllerEnabled());
return S_OK;
}
Modified: trunk/Tools/ChangeLog (287226 => 287227)
--- trunk/Tools/ChangeLog 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Tools/ChangeLog 2021-12-18 19:04:53 UTC (rev 287227)
@@ -1,3 +1,18 @@
+2021-12-17 Simon Fraser <[email protected]>
+
+ Rename MockScrollAnimatorEnabled to MockScrollbarsControllerEnabled
+ https://bugs.webkit.org/show_bug.cgi?id=234452
+
+ Reviewed by Anders Carlsson.
+
+ The class formerly known as MockScrollAnimatorEnabled is used for logging when scrollbars
+ get events, so fix the name. It's a subclass of ScrollbarsController.
+
+ * DumpRenderTree/TestOptions.cpp:
+ (WTR::TestOptions::defaults):
+ * WebKitTestRunner/TestOptions.cpp:
+ (WTR::TestOptions::defaults):
+
2021-12-18 Chris Dumez <[email protected]>
Drop ServiceWorkerTCPServer and use HTTPServer instead
Modified: trunk/Tools/DumpRenderTree/TestOptions.cpp (287226 => 287227)
--- trunk/Tools/DumpRenderTree/TestOptions.cpp 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Tools/DumpRenderTree/TestOptions.cpp 2021-12-18 19:04:53 UTC (rev 287227)
@@ -155,7 +155,7 @@
{ "LoadsImagesAutomatically", true },
{ "MainContentUserGestureOverrideEnabled", false },
{ "MenuItemElementEnabled", false },
- { "MockScrollAnimatorEnabled", false },
+ { "MockScrollbarsControllerEnabled", false },
{ "ModernMediaControlsEnabled", true },
{ "NeedsStorageAccessFromFileURLsQuirk", false },
{ "OverscrollBehaviorEnabled", true },
Modified: trunk/Tools/WebKitTestRunner/TestOptions.cpp (287226 => 287227)
--- trunk/Tools/WebKitTestRunner/TestOptions.cpp 2021-12-18 18:06:48 UTC (rev 287226)
+++ trunk/Tools/WebKitTestRunner/TestOptions.cpp 2021-12-18 19:04:53 UTC (rev 287227)
@@ -98,7 +98,7 @@
{ "MediaDevicesEnabled", true },
{ "MediaPreloadingEnabled", true },
{ "MediaSourceEnabled", mediaSourceEnabledValue },
- { "MockScrollAnimatorEnabled", false },
+ { "MockScrollbarsControllerEnabled", false },
{ "MockCaptureDevicesEnabled", true },
{ "MockScrollbarsEnabled", true },
{ "ModernMediaControlsEnabled", true },