servo/components
Martin Robinson bbe505e52b
layout: Round clientTop, etc queries to pixels properly (#31187)
* layout: Round getClientRect queries to pixels properly

Instead of just flooring all pixels in getClientRect queries, we should
round the rectangle.

* Fix scrollWidth/scrollHeight too, and tests

* Tests passing

* Test expectation for legacy layout

---------

Co-authored-by: Oriol Brufau <obrufau@igalia.com>
2024-01-27 16:34:21 +00:00
..
allocator Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00
atoms Further changes required by Servo 2023-11-06 09:35:57 +01:00
background_hang_monitor Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00
bluetooth Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00
canvas deps: Remove unused crate dependencies (#31185) 2024-01-26 23:18:26 +00:00
compositing deps: Remove unused crate dependencies (#31185) 2024-01-26 23:18:26 +00:00
config rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
config_plugins Remove use of proc_macro_diagnostics feature (#30745) 2023-11-17 10:36:09 +00:00
constellation deps: Remove unused crate dependencies (#31185) 2024-01-26 23:18:26 +00:00
deny_public_fields Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
derive_common Further changes required by Servo 2023-11-24 08:57:14 +01:00
devtools rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
dom_struct Replace script_plugins with a clippy like rustc driver (named crown) (#30508) 2023-12-01 15:50:52 +00:00
domobject_derive Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
geometry Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
gfx Replace time with std::time in components/gfx (#31168) 2024-01-25 08:31:40 +00:00
hyper_serde Revert "Replace time with std::time in components/net (#31079)" (#31120) 2024-01-18 15:10:48 +00:00
jstraceable_derive Update to syn 2 where possible (#30387) 2023-09-19 15:57:37 +00:00
layout deps: Remove unused crate dependencies (#31185) 2024-01-26 23:18:26 +00:00
layout_2020 layout: Round clientTop, etc queries to pixels properly (#31187) 2024-01-27 16:34:21 +00:00
layout_thread deps: Remove unused crate dependencies (#31185) 2024-01-26 23:18:26 +00:00
layout_thread_2020 deps: Remove unused crate dependencies (#31185) 2024-01-26 23:18:26 +00:00
malloc_size_of script: Start replacing time with std::time and chrono (#30639) 2024-01-16 12:23:18 +00:00
media chore: re-export servo-media types (#31180) 2024-01-26 23:25:38 +00:00
metrics Replace time with std::time in components/metrics & components/shared (#31020) 2024-01-10 19:23:47 +00:00
net deps: Remove unused crate dependencies (#31185) 2024-01-26 23:18:26 +00:00
pixels Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
profile Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00
rand Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
range Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
remutex rustdoc: Fix many rustdoc errors (#31147) 2024-01-22 13:13:48 +00:00
script Use Int8array, int16array, uint16array, int32array & uint32array in WebIDL (#31164) 2024-01-25 14:28:43 +00:00
selectors Further changes required by Servo 2023-11-24 08:57:14 +01:00
servo Update Servo::get_events to return drain type (#31181) 2024-01-26 10:25:12 +00:00
servo_arc style: Rustfmt servo/. r=zrhoffman 2023-11-24 08:57:14 +01:00
shared deps: Remove unused crate dependencies (#31185) 2024-01-26 23:18:26 +00:00
size_of_test Further changes required by Servo 2023-08-16 17:46:41 +02:00
style layout: Add support for table border-spacing (#31166) 2024-01-26 16:07:08 +00:00
style_derive Further changes required by Servo 2023-11-24 08:57:14 +01:00
style_traits style: Remove viewport rule code 2023-11-24 08:57:14 +01:00
to_shmem style: Rustfmt servo/. r=zrhoffman 2023-11-24 08:57:14 +01:00
to_shmem_derive Further changes required by Servo 2023-11-24 08:57:14 +01:00
url Strict import formatting (grouping and granularity) (#30325) 2023-09-11 19:16:54 +00:00
webdriver_server deps: Remove unused crate dependencies (#31185) 2024-01-26 23:18:26 +00:00
webgpu Fix failed request for adapter when not available (#31002) 2024-01-09 09:12:53 +00:00
webrender_surfman Preliminary Android build support (#31086) 2024-01-22 13:00:15 +00:00