aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlselectelement.rs
Commit message (Collapse)AuthorAgeFilesLines
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-2/+2
| | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
* Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-2/+2
| | | | | It still needs dependencies update to remove all the other bitflags versions.
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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`.
* Remove use of unstable box syntax.Simon Sapin2017-10-161-2/+2
| | | | | | | | | | | | | | | | | | | | 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-18/+18
| | | | | | | 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 MutNullableJS<T> to MutNullableDom<T>Anthony Ramine2017-09-261-3/+3
|
* Rename dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* Implement `size_hint` for more iterators.Corey Farwell2017-09-131-0/+8
| | | | | | | | ``` implement size hint for more iterators because why not we like fast things ```
* order derivable traits listsClément DAVID2017-08-231-1/+1
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Solving merge conficts related to the html5ever_atoms -> html5ever changeChristian Poveda2017-05-031-1/+1
|\
| * Upgrade to html5ever 0.16Simon Sapin2017-05-021-1/+1
| |
* | Changed all prefixes from DOMString to the atomic Prefix from html5everChristian Poveda2017-05-031-3/+3
|/
* Implement the form owner conceptMukilan Thiyagarajan2017-03-151-14/+35
|
* Make #[dom_struct] a proc_macro attributeAnthony Ramine2017-02-241-0/+1
|
* Move HTMLSelectElement upcast call into HTMLOptionsCollection constructor. ↵Simon Whitehead2017-02-141-1/+1
| | | | Fixes #15521
* Auto merge of #14085 - frewsxcv:list-of-options, r=asajeffreybors-servo2016-12-131-20/+45
|\ | | | | | | | | | | | | | | | | | | | | | | Implement "list of options" concept on `HTMLSelectElement`. Fixes #13763. <!-- 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/14085) <!-- Reviewable:end -->
| * Implement "list of options" concept on `HTMLSelectElement`.Corey Farwell2016-12-011-20/+45
| | | | | | | | Fixes https://github.com/servo/servo/issues/13763.
* | Remove HeapGCValueAnthony Ramine2016-12-121-2/+2
|/ | | | | | It could be used to have mutable JSVal fields without GC barriers. With the removal of that trait, MutHeap and MutNullableHeap can respectively be replaced by MutJS and MutNullableJS.
* Auto merge of #13969 - bbansalWolfPack:master, r=jdmbors-servo2016-11-251-2/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | html form validation initial steps with test html file <!-- Please describe your changes on the following line: --> Added code for initial steps in html form validation. 1. Added methods for trait validatable 2. implemented stub methods for elements like HTMLInputElement, HTMLButtonElement, etc <!-- 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 - [ ] These changes do not require tests because _____ <!-- 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/13969) <!-- Reviewable:end -->
| * html form validation initial steps with test html file, added stub methods, ↵Bhavya Bansal2016-11-231-2/+11
| | | | | | | | added code to handle validations
* | Update to string-cache 0.3Simon Sapin2016-11-031-6/+6
|/
* Implement `selectedIndex` property on `<select>`.Corey Farwell2016-10-241-0/+30
|
* Implement "reset algorithm" for `<select>`.Corey Farwell2016-10-191-0/+10
|
* Implement `value` property on `<select>`.Corey Farwell2016-10-161-0/+31
|
* Remove intrinsic Root::r()Anthony Ramine2016-10-111-6/+6
|
* implement HTMLOptionsCollection and add related items to HTMLSelectElementAlexandrov Sergey2016-09-261-34/+64
|
* Implement indexed access on select elementsMaciej Skrzypkowski2016-09-221-1/+46
| | | refs #11763
* Most of the code refactoring needed to be done is done with this commit.Arthur Marble2016-09-181-4/+4
|
* Inline DOM element creation into box expressions in components/script/dom/Kuba Birecki2016-07-141-2/+3
|
* Stop re-exporting AttrValue.Ms2ger2016-06-071-1/+2
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-2/+2
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* Support form submission of multipart/form-dataPrabhjyot Singh Sodhi2016-04-301-2/+2
|
* Remove `get_*` on getters as per RFC 0344.Corey Farwell2016-04-101-2/+2
| | | | | | https://github.com/rust-lang/rfcs/blob/master/text/0344-conventions-galore.md#gettersetter-apis https://github.com/servo/servo/issues/6224
* Implement initial pieces of form validation.Sagar Muchhal2016-03-241-1/+4
|
* Update rust-selectorsEmilio Cobos Álvarez2016-02-031-1/+1
| | | | | This commits updates rust-selectors to use the generic parser, and as such it moves the element state into the style crate.
* form submission for <textarea> and <select>Nicolas2015-12-301-1/+18
| | | | | | small changes from code review !child.get_disabled_state() becomes child.get_enabled_state()
* Introduce UnbindContextAnthony Ramine2015-12-131-5/+3
| | | | | This holds the context that describes the original node that was removed from a tree when unbinding from a tree.
* Remove unnecessary conversion to/from DOMString for localName.Eli Friedman2015-12-021-2/+2
|
* Compute attribute name atoms at compile-time.Eli Friedman2015-11-271-3/+3
|
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-1/+1
| | | | | | | | | | | 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.
* Replaced DOMString constructor by conversion functions.Alan Jeffrey2015-11-121-3/+2
| | | | | | 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-4/+4
| | | | | | | | | | 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-1/+1
|
* merge from masterrohan.prinja2015-11-031-3/+10
|\
| * Implement 'labels' attribute on 'labelable elements'Corey Farwell2015-11-011-0/+6
| |
| * Move EventState to rust-selectors.Bobby Holley2015-10-301-1/+2
| |
| * Fix some rust-clippy violationsCorey Farwell2015-10-301-2/+2
| |
* | move Castable into dom::bindings::inheritancerohan.prinja2015-10-301-1/+1
|/
* Add fixes based on review.Dongie Agnir2015-10-271-7/+6
| | | | | | - Use if let instead of match for Option - Refactor common code into pick_if_selected_and_reset
* Add fixes based on review.Dongie Agnir2015-10-271-1/+2
| | | | | | | | - Whitespace and indentation issues - call as_for_reset on option insert - add link to 'pick' in standard