tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit c94d1b16b30f2f2736de8bb1d338496e9e5f7734
parent c27941def7c3819c60701d08663ba4a652601d58
Author: Glenn Watson <git@chillybin.org>
Date:   Tue, 28 Oct 2025 01:19:06 +0000

Bug 1992912 - Fix rounding of sticky positioned picture cache slices r=gfx-reviewers,lsalzman

Differential Revision: https://phabricator.services.mozilla.com/D267722

Diffstat:
Mgfx/wr/webrender/src/util.rs | 4++--
Mtesting/web-platform/meta/css/cssom-view/scrollTo-zoom.html.ini | 1+
2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gfx/wr/webrender/src/util.rs b/gfx/wr/webrender/src/util.rs @@ -577,8 +577,8 @@ where impl<U> PointHelpers<U> for Point2D<f32, U> { fn snap(&self) -> Self { Point2D::new( - (self.x + 0.5).floor(), - (self.y + 0.5).floor(), + self.x.round(), + self.y.round(), ) } } diff --git a/testing/web-platform/meta/css/cssom-view/scrollTo-zoom.html.ini b/testing/web-platform/meta/css/cssom-view/scrollTo-zoom.html.ini @@ -1,5 +1,6 @@ [scrollTo-zoom.html] expected: if (os == "android"): PASS + if (os == "win"): PASS if (os == "linux"): [PASS, FAIL] FAIL