aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/str.rs
Commit message (Collapse)AuthorAgeFilesLines
* Support WebIDL `record<>`Kagami Sascha Rosylight2019-10-151-1/+1
|
* Fix some new warningsSimon Sapin2019-06-221-1/+1
|
* Remove unused code from script* cratesest312019-06-021-11/+1
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-4/+4
|
* Update src/href attributes to be a USVStringDan Robertson2018-12-171-1/+55
| | | | | | | | | | | | The following IDLs have the src/href attributes typed as a DOMString while in the spec the attribute has been updated to be a USVString: - HTMLIFrameElement - HTMLImageElement - HTMLInputElement - HTMLLinkElement - HTMLMediaElement - HTMLScriptElement
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Fixes panic on DOMString::strip_leading_and_trailing_ascii_whitespaceJim Berlage2018-11-081-9/+9
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* Format script componentchansuke2018-09-191-46/+45
|
* Upgrade to rustc 1.27.0-nightly (056f589fb 2018-04-07)Simon Sapin2018-04-091-1/+1
|
* implement range input sanitizationtigercosmos2018-01-171-12/+33
|
* input type=number validationsNathan2018-01-091-0/+10
|
* implement valid Date time Local inputtigercosmos2018-01-071-0/+92
|
* implement valid week stringtigercosmos2017-12-171-1/+66
|
* implement "Date type inputs", "Month type inputs"tigercosmos2017-12-051-0/+101
|
* Added time input sanitization:Simon Wörner2017-12-041-0/+71
| | | | | | - Implemented is_valid_time_string for DOMString. - Use is_valid_time_string for sanitize_value with time input. - Improved input type change test
* Auto merge of #18262 - KiChjang:value-sanitization, r=noxbors-servo2017-11-091-0/+23
|\ | | | | | | | | | | | | | | | | | | | | Implement value sanitization on HTMLInputElement https://html.spec.whatwg.org/multipage/input.html#value-sanitization-algorithm <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18262) <!-- Reviewable:end -->
| * Implement string stripping utilities from the Infra specKeith Yeung2017-11-081-0/+23
| |
* | Upgrade to rustc 1.23.0-nightly (02004ef78 2017-11-08)Simon Sapin2017-11-091-1/+0
|/
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Derive the Default trait for dictionaries containing GC values.Josh Matthews2017-09-251-2/+3
|
* order derivable traits listsClément DAVID2017-08-231-1/+1
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Performance Timeline APIFernando Jiménez Moreno2017-08-171-1/+1
|
* Update cssparser to 0.18Simon Sapin2017-07-241-3/+3
| | | | https://github.com/servo/rust-cssparser/pull/171
* Stop using the unstable optin_builtin_traits featureMatt Brubeck2017-06-281-7/+6
|
* Upgrade cssparser to 0.15Simon Sapin2017-06-161-0/+7
|
* script: Move extended_filtering to the style crate.Cameron McCormack2017-06-081-57/+0
| | | | | We'll need to call it from the style crate in later patches, when matching :lang() against element snapshots.
* Upgrade to html5ever 0.16Simon Sapin2017-05-021-1/+1
|
* ext. filtering for lang matchingSendilKumar N2017-03-071-0/+58
|
* Implement document.open and document.close (fixes #14591)Anthony Ramine2017-02-031-1/+6
|
* Introduce enums for identifying CSS properties.Simon Sapin2016-12-091-0/+6
| | | | | | | | | | | * `LonghandId` and `ShorthandId` are C-like enums * `Atom` is used for the name of custom properties. * `PropertyDeclarationId` is the identifier for `PropertyDeclaration`, after parsing and shorthand expansion. (Longhand or custom property.) * `PropertyId` represents any CSS property, e.g. in CSSOM. (Longhand, shorthand, or custom.) Using these instead of strings avoids some memory allocations and copies.
* Update to string-cache 0.3Simon Sapin2016-11-031-1/+14
|
* Implement Borrow<str> for DOMStringAnthony Ramine2016-09-071-1/+8
| | | | Useful to use DOMString as a HashMap key type.
* Auto merge of #12467 - jeenalee:jeena-headersAPI, r=jdmbors-servo2016-07-201-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the append method for the Headers API <!-- Please describe your changes on the following line: --> This commit adds the append method for the Headers API. @malisas and I are both contributors. There are a few TODOs related: - The script needs to parse the header value for certain header names to decide the header group it belongs - There are possible spec bugs that could change what a valid header value looks like (related: [issue page](https://github.com/whatwg/fetch/issues/332)) There are WPT tests already written for the Headers API, but they will fail as the Headers API is not fully implemented. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because tests for the Headers API already exists, but this commit does not implement the interface fully. The tests will fail. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/12467) <!-- Reviewable:end -->
| * Add the append method for the Headers API for the Fetch APIJeena Lee2016-07-191-1/+1
| | | | | | | | This commit will add the append method and associated helper functions, and introduce any necessary changes for it.
* | Expand the documentation for DOMString.Ms2ger2016-07-191-0/+35
|/ | | | | There was some confusion on IRC about its purpose; hopefully this will clarify the situation.
* Associate logical and physical keypresses together to support non-QWERTY ↵Josh Matthews2016-07-051-1/+10
| | | | keyboards.
* Remove unused ByteString::bytes() and its unit test.Ms2ger2016-06-071-7/+0
|
* implement related sw interface and register methodRahul Sharma2016-06-021-0/+1
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+120
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* use self.0 instead of destructing single item tuple structsfaineance2016-03-271-2/+1
|
* move method from ByteString to module where it was usedTim Neumann2016-02-231-64/+0
|
* remove rarely used `is_token` method from ByteStringTim Neumann2016-02-231-6/+0
|
* Convert unwrapping of ByteString to self.0Daniel Robertson2016-02-181-8/+4
| | | | | Convert traditional unwrapping of the tuple struct ByteString to self.0
* Add methods to move ByteStrings underlying bytesDaniel Robertson2016-02-181-0/+13
| | | | Add methods to move the underlying Vec<u8> for ByteString.
* #9640 Refactor: Move util::str::is_token to script::dom::bindings::strPeter2016-02-141-1/+35
|
* Say farewell to in-tree HeapSizeOfAnthony Ramine2016-02-041-1/+0
|
* fix websocket header validation, ensure it meets token requirements, addjmr02016-01-241-29/+2
| | | | testing
* Rustfmt some of script.Ms2ger2015-11-181-6/+20
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-1/+0
| | | | This merges import blocks that were reported by tidy as unmerged.