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

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 unittest and move unittest to blink_platform_unittests Created 6 years, 3 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 829242067f241c9e52f35fb048f419f683bfe5ca..f4c9dc0390f522f99a50a66a177fd3712dc1a6a0 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 blink {
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;
}
« no previous file with comments | « Source/platform/scroll/ScrollbarStateTransitionAnimatorTest.cpp ('k') | Source/platform/scroll/ScrollbarThemeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698