mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Consolidate magic number representing max unsigned long
This commit is contained in:
parent
9cccd98254
commit
4dc8fd76ec
4 changed files with 15 additions and 4 deletions
7
components/script/dom/values.rs
Normal file
7
components/script/dom/values.rs
Normal file
|
@ -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;
|
Loading…
Add table
Add a link
Reference in a new issue