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

Unified Diff: third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-document.html

Issue 2005193005: Disable fractional scroll feature by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@layout-test-fix
Patch Set: Fix tests Created 4 years, 7 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/LayoutTests/fast/scrolling/fractional-scroll-offset-document.html
diff --git a/third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-document.html b/third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-document.html
index dd4090cdf6b9564b6fce456033561f5840035cc1..c5bcc635772e9f319ce57125a6ed9ac1a311e5da 100644
--- a/third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-document.html
+++ b/third_party/WebKit/LayoutTests/fast/scrolling/fractional-scroll-offset-document.html
@@ -7,7 +7,7 @@
description("Verifies that document scrolling supports fractional offset.");
var floatPrecision = 0.00001;
-var useIntegerScrollOffset = false;
+var useIntegerScrollOffset = true;
function checkScrollOffset(offset_x, offset_y)
{
if (useIntegerScrollOffset) {
@@ -35,13 +35,11 @@ function scroll()
function runTest()
{
if (window.eventSender) {
- debug("set PreferCompositingToLCDTextEnabled true");
- window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
- scroll();
-
- debug("set PreferCompositingToLCDTextEnabled false");
- window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
- useIntegerScrollOffset = true;
+ if (window.internals.runtimeFlags.fractionalScrollOffsetsEnabled) {
+ debug("fractional scroll offset mode");
+ window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
+ useIntegerScrollOffset = true;
+ }
scroll();
}
}

Powered by Google App Engine
This is Rietveld 408576698