aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/macros.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix compiler warningsBryce Wilson2021-08-141-1/+1
|
* Implement animationiteration eventMartin Robinson2020-05-211-0/+1
| | | | | | This event is triggered when an animation iterates. This change also moves iteration out of style calculation to an "update animations" which is the next part of having animation event handling match the HTML spec.
* Add support for animationend eventMartin Robinson2020-05-011-0/+1
| | | | | | | | | | This is triggered when an animation finishes. This is a high priority because it allows us to start rooting nodes with animations in the script thread. This doesn't yet cause a lot of tests to pass because they rely on the existence of `Document.getAnimations()` and the presence of `animationstart` and animationiteration` events.
* Add support for transitionrun eventsMartin Robinson2020-04-241-0/+1
| | | | | | These events are triggered as soon as a transition is added to the list of running transitions. This will allow better test coverage while reworking the transitions and animations processing model.
* Add support for canceling CSS transitionsMartin Robinson2020-04-221-0/+1
| | | | | | | | | | | This change adds support for canceling CSS transitions when a property is no longer transitionable or when an element becomes styled with display:none. Support for canceling and replacing CSS transitions when the end value changes is still pending. This change also takes advantage of updating the constellation message to fix a bug where transition events could be sent for closed pipelines. Fixes #15079.
* Remove WebVRAlan Jeffrey2020-04-081-15/+0
|
* Don't generate rare_data_for_layout methods anymoreAnthony Ramine2020-03-311-5/+0
| | | | It is only used twice.
* Add trait DomObjectWrap to provide WRAP functionYUAN LYU2020-03-201-2/+1
|
* Selection interface working for synthetic operationsPatrick Shaughnessy2020-02-131-0/+2
|
* Error and resize get special getter/setters for reflectionPatrick Shaughnessy2020-01-301-1/+2
|
* Labels are a live list in tree orderPatrick Shaughnessy2020-01-061-0/+15
|
* Add onformdata to GlobalEventHandlersxu3u42019-12-071-0/+1
|
* Add WebGLSampler supportMátyás Mustoha2019-10-081-0/+11
| | | | Reference: https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.7.13
* Final nits; fix custom elements rare data usage; s/owner_s_r/containing_s_rFernando Jiménez Moreno2019-04-291-0/+5
| | | | | Clarify special case for containing_shadow_root and add it to layout accessor
* Do not lazy initialize RareData on its gettersFernando Jiménez Moreno2019-04-261-15/+8
|
* Make Node and Element rare_data an OptionFernando Jiménez Moreno2019-04-261-0/+30
|
* Unify DocumentOrShadowRoot implementationFernando Jiménez Moreno2019-04-261-129/+0
|
* Partial ShadowRoot implementation of DocumentOrShadowRootFernando Jiménez Moreno2019-04-261-10/+37
|
* DocumentOrShadowRoot mixinFernando Jiménez Moreno2019-04-261-0/+102
|
* Set url attributeShanavas M2019-01-141-2/+2
|
* Update src/href attributes to be a USVStringDan Robertson2018-12-171-13/+14
| | | | | | | | | | | | The following IDLs have the src/href attributes typed as a DOMString while in the spec the attribute has been updated to be a USVString: - HTMLIFrameElement - HTMLImageElement - HTMLInputElement - HTMLLinkElement - HTMLMediaElement - HTMLScriptElement
* Auto merge of #22081 - KiChjang:onmessageerror, r=jdmbors-servo2018-12-121-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add onmessageerror to WindowEventHandler <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./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 _____ <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- 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/22081) <!-- Reviewable:end -->
| * Add onmessageerror to WindowEventHandlerKeith Yeung2018-12-111-0/+2
| |
* | Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
| |
* | `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
|