aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/textdecoder.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/textdecoder.rs')
-rw-r--r--components/script/dom/textdecoder.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/textdecoder.rs b/components/script/dom/textdecoder.rs
index 3940001416e..3491503bb91 100644
--- a/components/script/dom/textdecoder.rs
+++ b/components/script/dom/textdecoder.rs
@@ -75,9 +75,11 @@ impl TextDecoder {
can_gc,
)
}
+}
+impl TextDecoderMethods for TextDecoder {
/// <https://encoding.spec.whatwg.org/#dom-textdecoder>
- pub fn Constructor(
+ fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject>,
can_gc: CanGc,
@@ -97,9 +99,7 @@ impl TextDecoder {
can_gc,
))
}
-}
-impl TextDecoderMethods for TextDecoder {
// https://encoding.spec.whatwg.org/#dom-textdecoder-encoding
fn Encoding(&self) -> DOMString {
DOMString::from(self.encoding.name().to_ascii_lowercase())