Fix more clippy (#32740)

This commit is contained in:
石蕊 (Pi-Cla) 2024-07-09 04:47:43 +00:00 committed by GitHub
parent 4e1f623666
commit f29dd64a7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 72 additions and 90 deletions

View file

@ -118,11 +118,11 @@ impl ResizeObserver {
let height = box_size.height().to_f64_px();
let size_impl = ResizeObserverSizeImpl::new(width, height);
let window = window_from_node(&**target);
let observer_size = ResizeObserverSize::new(&*window, size_impl);
let observer_size = ResizeObserverSize::new(&window, size_impl);
// Note: content rect is built from content box size.
let content_rect = DOMRectReadOnly::new(
&*window.upcast(),
window.upcast(),
None,
box_size.origin.x.to_f64_px(),
box_size.origin.y.to_f64_px(),
@ -130,9 +130,9 @@ impl ResizeObserver {
height,
);
let entry = ResizeObserverEntry::new(
&*window,
&window,
target,
&*content_rect,
&content_rect,
&[],
&[&*observer_size],
&[],