зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
03c20a085c
Коммит
10322bcfca
|
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче