diff options
author | Gilles Leblanc <gilles.leblanc@gmail.com> | 2014-10-06 22:49:49 -0400 |
---|---|---|
committer | Gilles Leblanc <gilles.leblanc@gmail.com> | 2014-10-06 22:49:49 -0400 |
commit | 3a5a66d54e459deb9ead7f8b8760449e9e5faa94 (patch) | |
tree | 04e8f2ae33f499e990727b1a841559a203e79fa9 /components/script/dom/htmlimageelement.rs | |
parent | 0549ed3c675d1cc7a8832128e90b7886e3c1710c (diff) | |
download | servo-3a5a66d54e459deb9ead7f8b8760449e9e5faa94.tar.gz servo-3a5a66d54e459deb9ead7f8b8760449e9e5faa94.zip |
Take the prefix from createElementNS into account for HTML elements
Fixes #3139
Diffstat (limited to 'components/script/dom/htmlimageelement.rs')
-rw-r--r-- | components/script/dom/htmlimageelement.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/htmlimageelement.rs b/components/script/dom/htmlimageelement.rs index 76013985c55..633b07ce5bf 100644 --- a/components/script/dom/htmlimageelement.rs +++ b/components/script/dom/htmlimageelement.rs @@ -71,16 +71,16 @@ impl<'a> PrivateHTMLImageElementHelpers for JSRef<'a, HTMLImageElement> { } impl HTMLImageElement { - fn new_inherited(localName: DOMString, document: JSRef<Document>) -> HTMLImageElement { + fn new_inherited(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> HTMLImageElement { HTMLImageElement { - htmlelement: HTMLElement::new_inherited(HTMLImageElementTypeId, localName, document), + htmlelement: HTMLElement::new_inherited(HTMLImageElementTypeId, localName, prefix, document), image: RefCell::new(None), } } #[allow(unrooted_must_root)] - pub fn new(localName: DOMString, document: JSRef<Document>) -> Temporary<HTMLImageElement> { - let element = HTMLImageElement::new_inherited(localName, document); + pub fn new(localName: DOMString, prefix: Option<DOMString>, document: JSRef<Document>) -> Temporary<HTMLImageElement> { + let element = HTMLImageElement::new_inherited(localName, prefix, document); Node::reflect_node(box element, document, HTMLImageElementBinding::Wrap) } } |