aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/eventdispatcher.rs
Commit message (Collapse)AuthorAgeFilesLines
* sorted the extern crate, mod & use declarationsRavi Shankar2015-09-241-1/+1
|
* Fix reported test-tidy errors for unmerged import blocksBrandon Fairchild2015-09-191-2/+1
| | | | This merges import blocks that were reported by tidy as unmerged.
* Remove a pointless clone() call.Ms2ger2015-09-161-1/+1
|
* Remove an obsolete TODO comment.Ms2ger2015-09-161-1/+0
|
* Use an early return in dispatch_to_listeners.Ms2ger2015-09-161-14/+15
|
* Emit markers for all events, not just UI events.Ms2ger2015-09-161-8/+50
|
* Return immediately from dispatch_to_listeners if propagation is stopped.Ms2ger2015-09-161-11/+14
|
* Use early returns in dispatch_to_listeners.Ms2ger2015-09-161-11/+15
|
* Use if-let in dispatch_to_listeners, and simplify break conditions.Ms2ger2015-09-161-32/+22
|
* Avoid calling any listeners for events whose stop propagation flag is set ↵Ms2ger2015-09-161-0/+8
| | | | prior to dispatching.
* Add more assertions to dispatch_event.Ms2ger2015-09-161-0/+2
|
* Factor out a dispatch_to_listeners function from dispatch_event.Ms2ger2015-09-161-23/+27
|
* Reorder the code in dispatch_event a bit.Ms2ger2015-09-161-3/+2
|
* Remove outdated FIXME comment.Ms2ger2015-09-161-2/+0
|
* Fix match_refs and let_returns in layout, address review changesManish Goregaokar2015-09-041-3/+2
|
* Elide most 'b lifetimesManish Goregaokar2015-09-041-2/+2
|
* Elide most 'a lifetimesManish Goregaokar2015-09-041-1/+1
|
* 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.
* sort all usesJohann Tuffe2015-08-201-1/+1
|
* Auto merge of #7241 - Wafflespeanut:event_handler, r=Ms2gerbors-servo2015-08-181-3/+3
|\ | | | | | | | | | | | | | | | | | | Matching over event listeners and handlers; r=Ms2ger ... for #7065 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7241) <!-- Reviewable:end -->
| * Matching over event listeners and handlers; r=Ms2gerRavi Shankar2015-08-181-3/+3
| | | | | | | | fixup! Matching over event listeners and handlers; r=Ms2ger
* | Replace uses of `for foo in bar.iter()`,João Oliveira2015-08-181-2/+2
|/ | | | | and `for foo in bar.iter_mut(), and for foo in bar.into_iter() (continuation of #7197)
* Replace uses of `for foo in bar.iter()` and `for foo in bar.iter_mut()`João Oliveira2015-08-151-2/+2
| | | | closes #7197
* Introduce RootedVec<JS<T>>::r()Anthony Ramine2015-07-231-10/+8
|
* Upgrade to SM 39Michael Wu2015-06-191-8/+7
|
* Uniformise root() methodsAnthony Ramine2015-04-281-1/+1
| | | | | They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable and ResultRootable.
* Fix some no_move errorsManish Goregaokar2015-04-281-1/+1
|
* Auto merge of #5847 - Ms2ger:slice, r=SimonSapinbors-servo2015-04-261-4/+4
|\ | | | | | | | | | | <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5847) <!-- Reviewable:end -->
| * Remove as_slice() calls from script.Ms2ger2015-04-261-4/+4
| |
* | Removed unessary poping in dispatch_event, fixes #5843Peter2015-04-251-6/+0
|/
* Update WHATWG links to use HTTPSCorey Farwell2015-04-131-1/+1
| | | | | | | | | | | | | | 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' ```
* Hold a Temporary in AncestorIteratorAnthony Ramine2015-04-071-1/+2
|
* Implement RootedVec<T>Mukilan Thiyagarajan2015-03-291-10/+11
|
* Add handling for unreported exceptions when invoking callback objects.Josh Matthews2015-01-141-4/+4
|
* Replace Root::deref() calls by Root::r() calls where possible.Ms2ger2015-01-011-7/+7
| | | | This changes those calls that were already sound.
* Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.Ms2ger2014-12-171-9/+9
|
* Add auxiliary method to EventTargetHelpers for events without targetthiagopnts2014-12-161-0/+1
| | | | fixup! Add auxiliary method to EventTargetHelpers for events without target
* Privatize EventTim Taubert2014-10-131-21/+21
|
* Remove Traceable from event.rsManish Goregaokar2014-10-051-18/+18
|
* Implement MutNullableJS for mutable, nullable member pointers to DOM objects.Josh Matthews2014-10-011-1/+1
|
* First steps of &JSRef -> JSRef conversionCameron Zwarich2014-09-191-8/+8
| | | | | | | | | Replace &JSRef with JSRef in the bulk of the generated code. This will remove a level of indirection throughout all DOM code. This patch doesn't change methods implemented on JSRef<T> to take `self` rather than `&self`, and it leaves a few other uses of &JSRef, but those changes can be made incrementally.
* Cargoify servoJack Moffitt2014-09-081-0/+139