Commit 162eaa8e authored by Steve Kobes's avatar Steve Kobes Committed by Commit Bot

Restore 3px movement threshold.

This partially reverts crrev.com/700726, which removed the threshold,
and caused significant perf benchmark regressions (see linked bugs).

The test that verified the existence of the threshold is not restored,
since we no longer intend to spec this behavior.

Bug: 1003893,1009569,1009641,1009801
Change-Id: I284e53ba1f4c4c36cfcb2b54eaf5122758530c95
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1848899Reviewed-by: default avatarNicolás Peña Moreno <npm@chromium.org>
Commit-Queue: Steve Kobes <skobes@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704267}
parent bd7a9901
...@@ -28,7 +28,7 @@ namespace blink { ...@@ -28,7 +28,7 @@ namespace blink {
static constexpr base::TimeDelta kTimerDelay = static constexpr base::TimeDelta kTimerDelay =
base::TimeDelta::FromMilliseconds(500); base::TimeDelta::FromMilliseconds(500);
static const float kMovementThreshold = 1.0; // CSS pixels. static const float kMovementThreshold = 3.0; // CSS pixels.
static FloatPoint LogicalStart(const FloatRect& rect, static FloatPoint LogicalStart(const FloatRect& rect,
const LayoutObject& object) { const LayoutObject& object) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment