aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/values.rs
diff options
context:
space:
mode:
authorCorey Farwell <coreyf@rwell.org>2015-10-10 10:24:26 -0400
committerCorey Farwell <coreyf@rwell.org>2015-10-10 13:46:11 -0400
commit4dc8fd76ece28e8b2c351e6a3f4241baec1c0996 (patch)
tree877f5f51ee9ba7cffb616420ff523a0ed659e5b0 /components/script/dom/values.rs
parent9cccd98254191b1663dcaee9010eee63fa8074a3 (diff)
downloadservo-4dc8fd76ece28e8b2c351e6a3f4241baec1c0996.tar.gz
servo-4dc8fd76ece28e8b2c351e6a3f4241baec1c0996.zip
Consolidate magic number representing max unsigned long
Diffstat (limited to 'components/script/dom/values.rs')
-rw-r--r--components/script/dom/values.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/dom/values.rs b/components/script/dom/values.rs
new file mode 100644
index 00000000000..95bea039a97
--- /dev/null
+++ b/components/script/dom/values.rs
@@ -0,0 +1,7 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * 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/. */
+
+// https://html.spec.whatwg.org/multipage#reflecting-content-attributes-in-idl-attributes:idl-unsigned-long
+// https://html.spec.whatwg.org/multipage#limited-to-only-non-negative-numbers-greater-than-zero
+pub const UNSIGNED_LONG_MAX: u32 = 2147483647;