mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Use FooValue() functions.
This commit is contained in:
parent
9fbfb1909c
commit
84b0f45ed5
9 changed files with 72 additions and 87 deletions
|
@ -11,8 +11,7 @@ use dom::element::{Element, ElementTypeId, HTMLElementTypeId};
|
|||
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
|
||||
use dom::node::{Node, ElementNodeTypeId};
|
||||
use js::jsapi::JSContext;
|
||||
use js::jsval::JSVal;
|
||||
use js::JSVAL_NULL;
|
||||
use js::jsval::{JSVal, NullValue};
|
||||
use servo_util::namespace;
|
||||
use servo_util::str::DOMString;
|
||||
|
||||
|
@ -67,7 +66,7 @@ impl HTMLElement {
|
|||
}
|
||||
|
||||
pub fn GetItemValue(&self, _cx: *JSContext) -> Fallible<JSVal> {
|
||||
Ok(JSVAL_NULL)
|
||||
Ok(NullValue())
|
||||
}
|
||||
|
||||
pub fn SetItemValue(&mut self, _cx: *JSContext, _val: JSVal) -> ErrorResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue