aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domtokenlist.rs
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade to html5ever 0.16Simon Sapin2017-05-021-1/+1
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Update to string-cache 0.3Simon Sapin2016-11-031-4/+5
|
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-3/+1
|
* Make reflect_dom_object take a &GlobalScopeAnthony Ramine2016-10-061-2/+1
|
* Use Option<T> to return from gettersAnthony Ramine2016-08-301-4/+2
| | | | | This removes the cumbersome &mut bool argument and offers overall a more readable code.
* Move util::str to styleAnthony Ramine2016-07-051-1/+1
|
* Make DOMTokenList.contains not throw anymoreGuillaume Gomez2016-06-041-9/+8
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-1/+2
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Implement and test DOMTokenList.replace (fixes #8511)Sankha Narayan Guria2016-03-241-0/+26
|
* Implement value for DOMTokenListDominik Menzi2016-02-291-0/+10
|
* Fix a bunch of clippy lintsJohannes Linke2016-01-021-4/+4
|
* Fix DOMStringMap's stringifier behaviour according to the specAnthony Ramine2015-12-181-4/+3
| | | | | | It should just return its associated attribute's value, if any. https://github.com/whatwg/dom/issues/105
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-2/+2
| | | | | | | | | | | Updated string_cache, html5ever, xml5ever and selectors in Cargo.toml files and Cargo.lock. Removed references to string_cache_plugin. Import atom! and ns! from string_cache. Replaced ns!("") by ns!(). Replaced ns!(XML) and co by ns!(xml) and co. Replaced atom!(foo) by atom!("foo"). Replaced Atom::from_slice by Atom::from. Replaced atom.as_slice() by &*atom.
* Rustfmt some of script.Ms2ger2015-11-181-5/+3
|
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-3/+3
| | | | | | 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-2/+2
| | | | | | | | | | 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.
* Auto merge of #8221 - wenderen:8130-reorganise, r=jdmbors-servo2015-11-041-1/+1
|\ | | | | | | | | | | | | | | | | | | move modules around for #8130 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8221) <!-- Reviewable:end -->
| * more refactoringrohan.prinja2015-10-301-1/+1
| |
* | Simplify DOMTokenList::Item.Ms2ger2015-11-021-4/+1
|/
* Do not root DOMTokenList::elementAnthony Ramine2015-10-191-13/+9
|
* Refactor Error enum usage to consistently be qualifiedAnthony Urena2015-10-061-4/+3
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-3/+1
| | | | This merges import blocks that were reported by tidy as unmerged.
* renaming tokens(), atom() and uint() and rewriting to return or panicPrabhjyot Singh Sodhi2015-09-021-5/+4
|
* Merge adjacent identical `impl` sectionsCorey Farwell2015-08-281-3/+0
| | | | | Prior to #7416 and #7401, many of these `impl` sections were not identical
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-9/+9
|
* Remove AttributeHandlersAnthony Ramine2015-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | On components/script/*.rs: # Remove imports. /^ *use dom::element::\{.*AttributeHandlers/ { s/\{AttributeHandlers, /\{/ s/, AttributeHandlers//g s/\{([a-zA-Z]+)\}/\1/ /\{\}/d s/::self;$/;/ } /^ *use dom::element::\{?AttributeHandlers\}?;$/d # Remove AttributeHandlers. /^pub trait AttributeHandlers \{$/,/^\}$/D # Patch AttributeHandlers methods. /^impl<'a> AttributeHandlers for &'a Element \{/,/^\}$/ { s/^impl<'a> AttributeHandlers for &'a Element \{/impl Element {/ /^ *fn /s/\(self([,)])/\(\&self\1/ /^ *fn.*\(&self/s/fn/pub fn/ } The few error cases were then fixed by hand.
* Remove helper traitsAnthony Ramine2015-08-271-8/+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
* sort all usesJohann Tuffe2015-08-201-2/+2
|
* Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`João Oliveira2015-08-151-2/+2
| | | | closes #7197
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Add spec linksBogdan Cuza2015-07-281-6/+7
|
* Create and utilize utility for joining strsCorey Farwell2015-07-081-6/+2
|
* Join tokens when stringifying DOMTokenListCorey Farwell2015-07-081-1/+6
| | | | | | | | Previous, it would return the original String straight from the AttrValue, which might contain extraaneous whitespace. The spec specifies to just join the tokens together with \x20 https://dom.spec.whatwg.org/#stringification-behavior
* Remove some redundant let bindingsDavid Zbarsky2015-07-041-12/+7
|
* Upgrade to SM 39Michael Wu2015-06-191-12/+12
|
* Implement trivial stringifiersAnthony Ramine2015-04-291-0/+5
|
* Uniformise root() methodsAnthony Ramine2015-04-281-1/+1
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Remove as_slice() calls from script.Ms2ger2015-04-261-1/+1
|
* Update WHATWG links to use HTTPSCorey Farwell2015-04-131-4/+4
| | | | | | | | | | | | | | Extracted this out of #5649 This commit was created with the following commands: ``` find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ``` ``` find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g' ```
* Make Element::get_attribute() take its namespace by referenceAnthony Ramine2015-04-061-1/+1
|
* Remove some unnecessary uses of `as_slice`Corey Farwell2015-03-291-4/+4
| | | | | | | | | | | For the majority of these cases, `as_slice` can be removed due to `Deref`. In particular, `Deref` for: * `String` -> `str` * `Atom` -> `str` The latter of those two requires, a bump of the locked `string-cache` library
* Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.Ms2ger2015-03-181-10/+19
|
* Replace uint/int by usize/isize in various places.Ms2ger2015-02-201-1/+1
|
* Import the util crate as util rather than servo_util.Ms2ger2015-01-291-1/+1
| | | | | | | | This used to conflict with the util crate from the standard library, which has long since been removed. The import in layout has not been changed because of a conflict with the util mod there.
* Don't shadow lifetimes in script.Ms2ger2015-01-281-2/+2
|
* Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.Josh Matthews2015-01-281-1/+1
|
* Move to to_owned rather than into_string.Ms2ger2015-01-201-1/+3
| | | | into_string has been removed from Rust.
* Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-12/+13
| | | | This changes those calls that were already sound.