aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/urlsearchparams.rs
Commit message (Collapse)AuthorAgeFilesLines
* Strict import formatting (grouping and granularity) (#30325)Samson2023-09-111-3/+4
| | | | | * strict imports formatting * Reformat all imports
* Rename reflect_dom_object2.Josh Matthews2023-05-311-2/+2
|
* Formatting.Josh Matthews2023-05-281-1/+5
|
* Support arbitrary protos when wrapping DOM objects with constructors.Josh Matthews2023-05-281-3/+9
|
* Add value argument to URLSearchParams's has() and delete()Veronika Bušů2023-05-111-4/+12
| | | | | | This commit should fix #29725. Signed-off-by: Veronika Bušů <paricbat@email.cz>
* Implement URLSearchParams's size2shiori172023-03-021-0/+5
| | | | Signed-off-by: 2shiori17 <98276492+2shiori17@users.noreply.github.com>
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-6/+1
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-0/+1
|
* Support USVString as default value of a union argumentKagami Sascha Rosylight2019-10-171-6/+5
|
* Implement URLSearchParams.prototype.sort()CYBAI2019-01-081-0/+11
|
* Combine two `impl`s into oneCYBAI2019-01-081-2/+0
|
* Construct URLSearchParams from array or objectCYBAI2018-12-261-9/+23
|
* Remove leading question mark when constructing URLSearchParamsCYBAI2018-12-251-3/+11
|
* Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|
* Reorder importsPyfisch2018-11-061-1/+1
|
* Format remaining filesPyfisch2018-11-061-1/+2
|
* `cargo fix --edition`Simon Sapin2018-11-061-12/+12
|
* Format script componentchansuke2018-09-191-19/+24
|
* Use the url crate without its query_encoding featureSimon Sapin2017-10-311-4/+2
|
* Remove use of unstable box syntax.Simon Sapin2017-10-161-1/+1
| | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax.
* Rename Root<T> to DomRoot<T>Anthony Ramine2017-09-261-3/+3
| | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
* Rename DOMRefCell<T> to DomRefCell<T>Anthony Ramine2017-09-261-3/+3
| | | | | | | | I don't want to do such a gratuitous rename, but with all the other types now having "Dom" as part of their name, and especially with "DomOnceCell", I feel like the other cell type that we already have should also follow the convention. That argument loses weight though when we realise there is still DOMString and other things.
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Make URLSearchParams iterable.yoyo9300212016-10-071-2/+23
| | | | | Fixes #13022. Fixes #13077.
* Pass a &GlobalScope to WebIDL static methods and constructorsAnthony Ramine2016-10-061-3/+2
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-2/+3
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-2/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Correctly initialize URL.searchParamsSimon Sapin2016-04-231-19/+21
|
* Upgrade to rust-url 1.0 and hyper 0.9Simon Sapin2016-04-231-4/+8
|
* Implement URL.searchParamsStjepan Glavina2016-04-051-7/+20
| | | | Spec: https://url.spec.whatwg.org/#dom-url-searchparams
* Fix #9508: Beautify our union enums constructorsAlexander Lopatin2016-02-071-3/+2
|
* Improved .find().map()Florian Strübe2016-01-271-1/+2
|
* Use .find().map() instead of .filter_map().next() in URLSearchParams::GetFlorian Strübe2016-01-261-7/+1
|
* Implement URLSearchParams::getAllFernando Martins2016-01-151-0/+12
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-1/+1
| | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("...").
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-1/+1
| | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type.
* Get rid of a bunch of explicit derefsDavid Zbarsky2015-11-031-2/+2
|
* make test-tidy happy + fix some merge errorsrohan.prinja2015-11-031-1/+1
|
* merge from masterrohan.prinja2015-11-031-21/+22
|\
| * Update URLSearchParams to use USVString and String.Ms2ger2015-10-301-21/+22
| | | | | | | | This matches the specification.
* | more refactoringrohan.prinja2015-10-301-1/+1
|/
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-1/+1
|
* 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.
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-7/+7
|
* Remove helper traitsAnthony Ramine2015-08-271-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that JSRef<T> is gone, there is no need to have helper traits. On components/script/*.rs: # Remove imports. /^ *use dom::[a-z]+::\{.*Helpers/ { s/\{(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers, /\{/ s/, (Raw[^L]|[^L][^a])[a-zA-Z]+Helpers([,}])/\2/g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::[a-z]+::\{?(Raw[^L]|[^L][^a])[a-zA-Z]+Helpers\}?;$/d On components/script/dom/*.rs: # Ignore layout things. /^(pub )?(impl|trait).*Layout.* \{/,/^}$/ { P; D; } # Delete helpers traits. /^(pub )?trait ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? \{$/,/^\}$/D # Patch private helpers. /^impl.*Private.*Helpers/,/^\}$/ { s/^impl<'a> Private([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for &'a ([^ ]+) \{$/impl \3 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn /s/\(self([,)])/\(\&self\1/ } # Patch public helpers. /^impl.*Helpers/,/^\}$/ { s/^impl(<'a>)? ([^L][^ ]|L[^a])[^ ]+Helpers(<'a>)? for (&'a )?([^ ]+) \{$/impl \5 {/ /^ *(unsafe )?fn .*\(self.*[<&]'a/ { s/&'a /\&/g s/<'a, /</g } /^ *(unsafe )?fn .*\(&?self[,)]/s/(unsafe )?fn/pub &/ /^ *pub (unsafe )?fn /s/\(self([,)])/\(\&self\1/ } The few error cases were then fixed by hand.
* make dom_struct derive HeapSizeOf,João Oliveira2015-08-271-1/+0
| | | | closes #7357
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Remove some more unnecessary let bindingsDavid Zbarsky2015-07-141-6/+2
|
* Upgrade to SM 39Michael Wu2015-06-191-9/+8
|