aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/text.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/script/dom/text.rs')
-rw-r--r--src/components/script/dom/text.rs22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/components/script/dom/text.rs b/src/components/script/dom/text.rs
index 95926d12d92..807b1645d57 100644
--- a/src/components/script/dom/text.rs
+++ b/src/components/script/dom/text.rs
@@ -2,13 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-use dom::bindings::utils::{DOMString, ErrorResult, null_string, CacheableWrapper};
-use dom::bindings::utils::{BindingObject, WrapperCache};
-use dom::bindings::codegen::TextBinding;
+use dom::bindings::utils::{DOMString, ErrorResult, null_string};
use dom::characterdata::CharacterData;
use dom::node::{AbstractNode, ScriptView, Node, TextNodeTypeId};
use dom::window::Window;
-use js::jsapi::{JSContext, JSObject};
/// An HTML text node.
pub struct Text {
@@ -36,20 +33,3 @@ impl Text {
null_string
}
}
-
-impl CacheableWrapper for Text {
- fn get_wrappercache(&mut self) -> &mut WrapperCache {
- self.parent.get_wrappercache()
- }
-
- fn wrap_object_shared(@mut self, cx: *JSContext, scope: *JSObject) -> *JSObject {
- let mut unused = false;
- TextBinding::Wrap(cx, scope, self, &mut unused)
- }
-}
-
-impl BindingObject for Text {
- fn GetParentObject(&self, cx: *JSContext) -> Option<@mut CacheableWrapper> {
- self.parent.GetParentObject(cx)
- }
-}