mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
add CanGc as argument to methods in HTMLCollection, HTMLDataListElement, HTMLDialogElement, HTMLElement, HTMLFieldSetElement, HTMLFormControlsCollection, HTMLFormElement, HTMLIFrameElement (#36495)
add CanGc as argument to methods in HTMLCollection, HTMLDataListElement, HTMLDialogElement, HTMLElement, HTMLFieldSetElement, HTMLFormControlsCollection, HTMLFormElement, HTMLIFrameElement Testing: These changes do not require tests because they are a refactor. Addresses part of https://github.com/servo/servo/issues/34573. Signed-off-by: Yerkebulan Tulibergenov <yerkebulan@gmail.com>
This commit is contained in:
committed by
GitHub
parent
06f86f88a2
commit
3babf74986
@@ -209,7 +209,7 @@ pub(crate) fn handle_get_attribute_style(
|
||||
reply.send(None).unwrap();
|
||||
return;
|
||||
};
|
||||
let style = elem.Style();
|
||||
let style = elem.Style(can_gc);
|
||||
|
||||
let msg = (0..style.Length())
|
||||
.map(|i| {
|
||||
@@ -467,7 +467,7 @@ pub(crate) fn handle_modify_rule(
|
||||
let elem = node
|
||||
.downcast::<HTMLElement>()
|
||||
.expect("This should be an HTMLElement");
|
||||
let style = elem.Style();
|
||||
let style = elem.Style(can_gc);
|
||||
|
||||
for modification in modifications {
|
||||
let _ = style.SetProperty(
|
||||
|
||||
Reference in New Issue
Block a user