aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/macros.rs
Commit message (Collapse)AuthorAgeFilesLines
* `cargo fix --edition`Simon Sapin2018-11-061-52/+52
|
* Fix loadedmetadata event handlerFernando Jiménez Moreno2018-10-261-1/+1
|
* Format script componentchansuke2018-09-191-3/+2
|
* Mark DecodeResolver as must_rootFernando Jiménez Moreno2018-07-301-1/+2
|
* Use new params impl (#4)Manish Goregaokar2018-07-301-74/+1
| | | | | | * AudioNodeType -> AudioNodeInit * Use new param type system, clean up
* Expose more AudioParam methodsFernando Jiménez Moreno2018-07-301-1/+21
|
* Initial AudioParam bindingsFernando Jiménez Moreno2018-07-301-0/+53
|
* Move handle_potential_webgl_error to the dom macros moduleAnthony Ramine2018-04-041-0/+15
|
* Upgrade to rustc 1.23.0-nightly (02004ef78 2017-11-08)Simon Sapin2017-11-091-1/+0
|
* 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.
* Fix the form action IDL attributesAnthony Ramine2017-10-111-27/+11
| | | | | The returned string, if the attribute is present and non-empty, should be a URL resolved against the element's document's base URL.
* Fix URL attributesAnthony Ramine2017-10-111-4/+1
| | | | | URL attributes should always use AttrValue::Url, and the input should be resolved against the document's base URL at setting time always.
* 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 dom::bindings::js to dom::bindings::rootAnthony Ramine2017-09-261-1/+1
|
* User Timing APIFernando Jiménez Moreno2017-09-061-0/+39
|
* Use absolute paths in the event handlers macrosAnthony Ramine2017-09-011-12/+35
|
* WebVR 1.1 spec compatibilityImanol Fernandez2017-07-051-0/+15
|
* Have unsafe_no_jsmanaged_fields! macro take a type as argument rather than ↵Jonathan Chan2017-06-271-1/+1
| | | | | | | an ident. We only write unsafe_no_jsmanaged_fields!(SomeType), and the documentation says it is to be used for types.
* Refactor some window_from_node calls based on feedbackArseniy Ivanov2017-02-031-4/+6
|
* Check for the presence of a window when working with event handlers ↵Arseniy Ivanov2017-02-031-2/+8
| | | | forwarded to the window
* Properly root the running animation list in a RootedVecAnthony Ramine2016-12-121-5/+6
|
* Introduce jsmanaged_arrayAnthony Ramine2016-12-061-9/+16
|
* Remove generics from unsafe_no_jsmanaged_fieldsAnthony Ramine2016-12-061-18/+0
|
* Mark JSTraceable and its method as unsafeAnthony Ramine2016-12-061-9/+13
|
* Remove redundant url clonesPu Xingyu2016-11-181-1/+1
| | | | | They are now redundant since now document.url() returns a struct rather than a reference.
* Update to string-cache 0.3Simon Sapin2016-11-031-19/+19
|
* Make make_enumerated_getter prettier again.Corey Farwell2016-10-121-1/+1
| | | | Fixes https://github.com/servo/servo/issues/4723.
* Emit TransitionEnd events in the layout thread and process it in the script ↵Keith Yeung2016-10-111-0/+1
| | | | thread
* adding macro to return string or url,Jake Goldsborough2016-09-271-0/+20
| | | | | | using that macro with the form action, making the form submit process use base url, adding tests.
* Implement HTMLLIElement#valuevrod2016-07-281-0/+16
|
* Use a stack guard and a macro for RootedVec instead of return_address.Eduard Burtescu2016-07-041-0/+15
|
* Stop re-exporting AttrValue.Ms2ger2016-06-071-1/+1
|
* Move DOMString back to scriptAnthony Ramine2016-05-241-4/+5
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* dom: Add missing event handlersPiotr Stankiewicz2016-05-201-0/+128
| | | | | | | | | | Adding: * global event handlers, * window event handlers, * document and element handlers, * and support for BeforeUnloadEvent. Signed-off-by: Piotr Stankiewicz <bionicrift@gmail.com>
* Add event handlers for media-related events.Josh Matthews2016-05-031-0/+13
|
* Upgrade to rust-url 1.0 and hyper 0.9Simon Sapin2016-04-231-1/+1
|
* webgl: finish, flush, detachShader, generateMipmap, Uniform1iConnor Brewster2016-04-021-0/+8
|
* use return value of invoking event handlers to cancel the eventJoão Oliveira2016-02-261-2/+5
|
* Add onresize handler to GlobalEventHandlersJeff Harrison2016-01-291-0/+1
| | | | | Refs: https://github.com/servo/servo/issues/7996 Rebased: https://github.com/servo/servo/pull/8006
* Implement HTMLDetailsElement. Fixes #9216Lanza2016-01-201-0/+1
|
* Remove parsed attribute 'background' field on HTMLBodyElementCorey Farwell2016-01-021-0/+14
| | | | https://github.com/servo/servo/issues/7863
* Implement the onreset event handler.Josh Matthews2015-12-301-0/+1
|
* Implement non-zero dimension attribute parsingCorey Farwell2015-12-241-0/+13
| | | | | | | | | | | | | Fixes #8445 The only attributes I found that we have implemented that uses non-zero dimenion attributes: * `width` for `<td>` and `<th>` (table cells) * `width` for `<table>` I updated these implementations to use the new non-zero dimension attribute parsing and added associated regression tests.
* Makes setting negative values to maxLength throw an IndexSize exceptionSam Gibson2015-12-031-0/+20
|
* Resolves long-running merge conflictsSam Gibson2015-12-031-10/+7
|
* Makes int_getter macro, and uses -1 as default maxlength instead of maxintSam Gibson2015-12-031-0/+19
|
* Compute attribute name atoms at compile-time.Eli Friedman2015-11-271-74/+29
|
* Update string_cache to 0.2.Alan Jeffrey2015-11-251-13/+13
| | | | | | | | | | | 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("...").
* Differentiate between error and non-error event handlers per the spec.Josh Matthews2015-11-121-4/+7
|