mirror of
https://github.com/servo/servo.git
synced 2025-06-23 08:34:42 +01:00
Address review comments.
This commit is contained in:
parent
7b3e6d1f21
commit
0f2d0b1dc3
99 changed files with 388 additions and 380 deletions
|
@ -5,7 +5,7 @@
|
|||
use dom::bindings::codegen::BindingDeclarations::HTMLBRElementBinding;
|
||||
use dom::bindings::codegen::InheritTypes::HTMLBRElementDerived;
|
||||
use dom::bindings::error::ErrorResult;
|
||||
use dom::bindings::js::{JS, JSRef, Temporary};
|
||||
use dom::bindings::js::{JSRef, Temporary};
|
||||
use dom::document::Document;
|
||||
use dom::element::HTMLBRElementTypeId;
|
||||
use dom::eventtarget::{EventTarget, NodeTargetTypeId};
|
||||
|
@ -28,14 +28,14 @@ impl HTMLBRElementDerived for EventTarget {
|
|||
}
|
||||
|
||||
impl HTMLBRElement {
|
||||
pub fn new_inherited(localName: DOMString, document: JS<Document>) -> HTMLBRElement {
|
||||
pub fn new_inherited(localName: DOMString, document: &JSRef<Document>) -> HTMLBRElement {
|
||||
HTMLBRElement {
|
||||
htmlelement: HTMLElement::new_inherited(HTMLBRElementTypeId, localName, document)
|
||||
}
|
||||
}
|
||||
|
||||
pub fn new(localName: DOMString, document: &JSRef<Document>) -> Temporary<HTMLBRElement> {
|
||||
let element = HTMLBRElement::new_inherited(localName, document.unrooted());
|
||||
let element = HTMLBRElement::new_inherited(localName, document);
|
||||
Node::reflect_node(~element, document, HTMLBRElementBinding::Wrap)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue