diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-07-26 08:01:56 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-07-26 08:01:56 -0600 |
commit | 5a66b59f9bfece8944d9766872cc95cdce7705e6 (patch) | |
tree | 9af651e044cb45593da5ae90eed4ae0184fd39bd /components/script/dom/node.rs | |
parent | fd1bf1900d876be2da4743c65ea0956be1057453 (diff) | |
parent | 3801cfdd35b13cafb086b2aae32aa414cf0027b2 (diff) | |
download | servo-5a66b59f9bfece8944d9766872cc95cdce7705e6.tar.gz servo-5a66b59f9bfece8944d9766872cc95cdce7705e6.zip |
Auto merge of #6760 - dzbarsky:comment-fix, r=jdm
Remove outdated comment about cloning elements
The comment points to the "implement element prefix" issue, but we clone the element's prefix when we construct the element right above.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6760)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 4922bb53118..42ad7608580 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -1816,10 +1816,9 @@ impl Node { copy_doc.set_quirks_mode(node_doc.quirks_mode()); }, NodeTypeId::Element(..) => { - let node_elem: &Element = ElementCast::to_ref(node).unwrap(); - let copy_elem: &Element = ElementCast::to_ref(copy.r()).unwrap(); + let node_elem = ElementCast::to_ref(node).unwrap(); + let copy_elem = ElementCast::to_ref(copy.r()).unwrap(); - // FIXME: https://github.com/mozilla/servo/issues/1737 let window = document.r().window(); for ref attr in node_elem.attrs().iter() { let attr = attr.root(); |