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

Unified Diff: third_party/WebKit/Source/core/page/AutoscrollController.cpp

Issue 2942273002: Avoid some static initializers in Windows builds (Closed)
Patch Set: Use constexpr [] instead of constexpr const * Created 3 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: third_party/WebKit/Source/core/page/AutoscrollController.cpp
diff --git a/third_party/WebKit/Source/core/page/AutoscrollController.cpp b/third_party/WebKit/Source/core/page/AutoscrollController.cpp
index b0c6af1a9b17adef1975b5aca5ecf23e4504e347..5730b9df1ea5fefdea017938c00cc8371911e8fb 100644
--- a/third_party/WebKit/Source/core/page/AutoscrollController.cpp
+++ b/third_party/WebKit/Source/core/page/AutoscrollController.cpp
@@ -44,7 +44,7 @@ namespace blink {
// Delay time in second for start autoscroll if pointer is in border edge of
// scrollable element.
-static const TimeDelta kAutoscrollDelay = TimeDelta::FromSecondsD(0.2);
+constexpr TimeDelta kAutoscrollDelay = TimeDelta::FromSecondsD(0.2);
AutoscrollController* AutoscrollController::Create(Page& page) {
return new AutoscrollController(page);

Powered by Google App Engine
This is Rietveld 408576698