mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
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>
This commit is contained in:
parent
38c5ebbf8e
commit
39133a5478
8 changed files with 53 additions and 31 deletions
|
@ -40,6 +40,7 @@ use crate::dom::node::{stylesheets_owner_from_node, window_from_node, Node, Shad
|
|||
use crate::dom::types::HTMLElement;
|
||||
use crate::realms::enter_realm;
|
||||
use crate::script_module::ScriptFetchOptions;
|
||||
use crate::script_runtime::CanGc;
|
||||
use crate::script_thread::Documents;
|
||||
|
||||
#[allow(unsafe_code)]
|
||||
|
@ -336,7 +337,7 @@ pub fn handle_get_layout(
|
|||
let elem = node
|
||||
.downcast::<Element>()
|
||||
.expect("should be getting layout of element");
|
||||
let rect = elem.GetBoundingClientRect();
|
||||
let rect = elem.GetBoundingClientRect(CanGc::note());
|
||||
let width = rect.Width() as f32;
|
||||
let height = rect.Height() as f32;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue