aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/domstringmap.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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-2/+2
| | | | | | | 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 JS<T> to Dom<T>Anthony Ramine2017-09-261-3/+3
|
* 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
|
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-1/+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 DOMString back to scriptAnthony Ramine2016-05-241-1/+1
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Reduce 'match' body, remove unnecessary cloneCorey Farwell2016-01-051-10/+3
|
* Rustfmt some of script.Ms2ger2015-11-181-1/+2
|
* Use DOMString::new() somewhat consistently.Ms2ger2015-11-041-1/+1
|
* merge from masterrohan.prinja2015-11-031-2/+1
|\
| * Implement DOMStringMap::SupportedPropertyNames and ↵Nova Fallen2015-10-301-2/+1
| | | | | | | | NamedNodeMap::SupportedPropertyNames
* | more refactoringrohan.prinja2015-10-301-1/+1
|/
* Do not root DOMStringMap::elementAnthony Ramine2015-10-191-6/+3
|
* Link to the HTML multipage spec, not the single-page one.Eli Friedman2015-10-131-1/+1
|
* Remove deprecated 'creator' WebIDL attributeCorey Farwell2015-09-211-5/+0
| | | | According to @Ms2ger, the 'creator' attribute was merged into 'setter'
* Add/update spec links for SupportedPropertyNames methodsCorey Farwell2015-09-201-1/+1
|
* Make the traits for the IDL interfaces take &selfAnthony Ramine2015-08-271-6/+6
|
* Remove helper traitsAnthony Ramine2015-08-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Initial implementation of ownPropertyKeys proxy handlerCorey Farwell2015-08-201-1/+6
| | | | | | | | | | | Generates `SupportedPropertyNames` on DOM structs that should implement it. Most of them are unimplemented now (which can be implemented in later PRs), with the exception of `HTMLCollection`. Also added a couple relevant WPT tests. Closes #6390 Closes #2215
* sort all usesJohann Tuffe2015-08-201-1/+1
|
* Measure heap memory usage for more types. Fixes #6951Bogdan Cuza2015-08-131-0/+1
|
* Add spec linksBogdan Cuza2015-07-281-0/+4
|
* Upgrade to SM 39Michael Wu2015-06-191-6/+6
|
* Uniformise root() methodsAnthony Ramine2015-04-281-1/+1
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* 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.
* Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-3/+3
| | | | This changes those calls that were already sound.
* Rename Root::root_ref() to Root::r().Ms2ger2015-01-011-1/+1
| | | | | As it will be used much more widely after the upcoming changes, this limits the effort reading and writing the method calls.
* Remove manual impls of Reflectors (autogen)Manish Goregaokar2014-12-271-6/+1
| | | | | | | | | Obtained via: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"` `find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"` followed by semi-automated removal of leftover imports
* Implement HTMLElement.dataset (fixes #2974).Bruno de Oliveira Abinader2014-12-231-16/+21
|
* Revert PR #4038 for causing WPT failures.Ms2ger2014-12-231-21/+16
|
* Implement HTMLElement.datasetBruno de Oliveira Abinader2014-12-191-16/+21
| | | | Make DOMStringMap use related Element's custom attributes values.
* Updated reflect_dom_object to be passed by valueMichael Booth2014-11-301-1/+1
|
* Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8aJack Moffitt2014-11-131-2/+2
|
* Remove warning from 'deleter' WebIDL codegenBruno de Oliveira Abinader2014-11-061-0/+4
|
* Implement DOMStringMapBruno de Oliveira Abinader2014-11-061-0/+62