mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
cangc fixes in node.rs (#33984)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
3ed778150f
commit
bb4932026c
97 changed files with 1038 additions and 534 deletions
|
@ -176,6 +176,7 @@ impl HTMLTextAreaElement {
|
|||
prefix: Option<Prefix>,
|
||||
document: &Document,
|
||||
proto: Option<HandleObject>,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<HTMLTextAreaElement> {
|
||||
Node::reflect_node_with_proto(
|
||||
Box::new(HTMLTextAreaElement::new_inherited(
|
||||
|
@ -183,6 +184,7 @@ impl HTMLTextAreaElement {
|
|||
)),
|
||||
document,
|
||||
proto,
|
||||
can_gc,
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -306,8 +308,8 @@ impl HTMLTextAreaElementMethods for HTMLTextAreaElement {
|
|||
}
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#dom-textarea-defaultvalue
|
||||
fn SetDefaultValue(&self, value: DOMString) {
|
||||
self.upcast::<Node>().SetTextContent(Some(value));
|
||||
fn SetDefaultValue(&self, value: DOMString, can_gc: CanGc) {
|
||||
self.upcast::<Node>().SetTextContent(Some(value), can_gc);
|
||||
|
||||
// if the element's dirty value flag is false, then the element's
|
||||
// raw value must be set to the value of the element's textContent IDL attribute
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue