diff options
author | tanishka <109246904+taniishkaaa@users.noreply.github.com> | 2024-10-08 18:28:09 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-08 12:58:09 +0000 |
commit | 39133a547846ead67be0d8ad7dac026cb318dd2d (patch) | |
tree | 492a179407739778fa73f2d0791d6217568f4556 /components/script/dom/htmlimageelement.rs | |
parent | 38c5ebbf8e52aebe5155c80fa1ea4da81838d7de (diff) | |
download | servo-39133a547846ead67be0d8ad7dac026cb318dd2d.tar.gz servo-39133a547846ead67be0d8ad7dac026cb318dd2d.zip |
Replace CanGc::note() calls with arguments in `components/script/dom` (#33692)
* Replace CanGc::note() calls with arguments in components/script/dom
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
* Add methods to Bindings.conf
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
* Modify existing interface sections
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
* Resolve conflicts
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
---------
Signed-off-by: taniishkaaa <tanishkasingh2004@gmail.com>
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r-- | components/script/dom/htmlimageelement.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs index 18b2dfdad41..c3bff457553 100644 --- a/components/script/dom/htmlimageelement.rs +++ b/components/script/dom/htmlimageelement.rs @@ -1823,7 +1823,9 @@ impl VirtualMethods for HTMLImageElement { mouse_event.ClientX().to_f32().unwrap(), mouse_event.ClientY().to_f32().unwrap(), ); - let bcr = self.upcast::<Element>().GetBoundingClientRect(); + let bcr = self + .upcast::<Element>() + .GetBoundingClientRect(CanGc::note()); let bcr_p = Point2D::new(bcr.X() as f32, bcr.Y() as f32); // Walk HTMLAreaElements |