aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom')
-rw-r--r--components/script/dom/bindings/utils.rs27
-rw-r--r--components/script/dom/url.rs9
2 files changed, 17 insertions, 19 deletions
diff --git a/components/script/dom/bindings/utils.rs b/components/script/dom/bindings/utils.rs
index 9ad2122430f..7a48349e594 100644
--- a/components/script/dom/bindings/utils.rs
+++ b/components/script/dom/bindings/utils.rs
@@ -172,19 +172,20 @@ pub fn get_array_index_from_id(_cx: *mut JSContext, id: HandleId) -> Option<u32>
None
}
// if id is length atom, -1, otherwise
- /*return if JSID_IS_ATOM(id) {
- let atom = JSID_TO_ATOM(id);
- //let s = *GetAtomChars(id);
- if s > 'a' && s < 'z' {
- return -1;
- }
-
- let i = 0;
- let str = AtomToLinearString(JSID_TO_ATOM(id));
- return if StringIsArray(str, &mut i) != 0 { i } else { -1 }
- } else {
- IdToInt32(cx, id);
- }*/}
+ // return if JSID_IS_ATOM(id) {
+ // let atom = JSID_TO_ATOM(id);
+ // //let s = *GetAtomChars(id);
+ // if s > 'a' && s < 'z' {
+ // return -1;
+ // }
+ //
+ // let i = 0;
+ // let str = AtomToLinearString(JSID_TO_ATOM(id));
+ // return if StringIsArray(str, &mut i) != 0 { i } else { -1 }
+ // } else {
+ // IdToInt32(cx, id);
+ // }
+}
/// Find the enum equivelent of a string given by `v` in `pairs`.
/// Returns `Err(())` on JSAPI failure (there is a pending exception), and
diff --git a/components/script/dom/url.rs b/components/script/dom/url.rs
index 25e0274cbf5..22f5f9a0fdc 100644
--- a/components/script/dom/url.rs
+++ b/components/script/dom/url.rs
@@ -118,12 +118,9 @@ impl URL {
// https://w3c.github.io/FileAPI/#dfn-revokeObjectURL
pub fn RevokeObjectURL(global: &GlobalScope, url: DOMString) {
- /*
- If the value provided for the url argument is not a Blob URL OR
- if the value provided for the url argument does not have an entry in the Blob URL Store,
-
- this method call does nothing. User agents may display a message on the error console.
- */
+ // If the value provided for the url argument is not a Blob URL OR
+ // if the value provided for the url argument does not have an entry in the Blob URL Store,
+ // this method call does nothing. User agents may display a message on the error console.
let origin = get_blob_origin(&global.get_url());
if let Ok(url) = ServoUrl::parse(&url) {