Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(272)

Unified Diff: Source/platform/scroll/ScrollbarThemeAura.cpp

Issue 246293006: Blink Support for Overlay Scrollbar Animation Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix try server compile error Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/scroll/ScrollbarThemeAura.cpp
diff --git a/Source/platform/scroll/ScrollbarThemeAura.cpp b/Source/platform/scroll/ScrollbarThemeAura.cpp
index 9145f3de9373c26fa5973fd81800999636fef3b0..20319127a1e8deb878ccd3fea3a5dfbe62ec6f26 100644
--- a/Source/platform/scroll/ScrollbarThemeAura.cpp
+++ b/Source/platform/scroll/ScrollbarThemeAura.cpp
@@ -41,6 +41,12 @@
#include "public/platform/WebRect.h"
#include "public/platform/WebThemeEngine.h"
+namespace {
+
+const int kDefaultOverlayScrollbarThumbThickness = 13;
+
+} // namespace
+
namespace WebCore {
static bool useMockTheme()
@@ -51,7 +57,7 @@ static bool useMockTheme()
ScrollbarTheme* ScrollbarTheme::nativeTheme()
{
if (RuntimeEnabledFeatures::overlayScrollbarsEnabled()) {
- DEFINE_STATIC_LOCAL(ScrollbarThemeOverlay, theme, (10, 0, ScrollbarThemeOverlay::AllowHitTest));
+ DEFINE_STATIC_LOCAL(ScrollbarThemeOverlay, theme, (kDefaultOverlayScrollbarThumbThickness, 0, ScrollbarThemeOverlay::AllowHitTest));
return &theme;
}

Powered by Google App Engine
This is Rietveld 408576698