servo: Merge #2838 - Remove an unnecessary string copy in the Text constructor (from Ms2ger:text-clone)

Source-Repo: https://github.com/servo/servo
Source-Revision: ab1a188e953faa8e99d10984a64a5474eeb1ff56
This commit is contained in:
Ms2ger 2014-07-15 08:30:37 -05:00
Родитель 03c20a085c
Коммит 10322bcfca
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -40,7 +40,7 @@ impl Text {
pub fn Constructor(owner: &JSRef<Window>, text: DOMString) -> Fallible<Temporary<Text>> {
let document = owner.Document().root();
Ok(Text::new(text.clone(), &*document))
Ok(Text::new(text, &*document))
}
}