aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/interface.rs
Commit message (Collapse)AuthorAgeFilesLines
* Fix commonmark Markdown warnings in docs, part 1Matt Brubeck2017-10-171-1/+1
| | | | | | | | Fixes warnings from rust-lang/rust#44229 when `--enable-commonmark` is passed to rustdoc. This is mostly a global find-and-replace for bare URIs on lines by themselves in doc comments.
* Remove usage of unstable features const_ptr_null and const_ptr_null_mutSimon Sapin2017-10-161-2/+2
|
* 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-5/+5
| | | | | | | 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
|
* order derivable traits listsClément DAVID2017-08-231-1/+1
| | | | | | Ignoring : - **generated**.rs - python/tidy/servo_tidy_tests/rust_tidy.rs
* Track custom element stateConnor Brewster2017-08-091-3/+5
|
* Add construction stackConnor Brewster2017-08-091-18/+37
|
* Implement CEReactions codegenConnor Brewster2017-07-181-0/+9
|
* Implement step 5 of HTMLConstructorConnor Brewster2017-06-151-7/+11
|
* Implement HTMLConstructorConnor Brewster2017-06-151-5/+76
|
* Add function to get constructor objects by nameConnor Brewster2017-06-151-0/+210
|
* Update js, AGAINAnthony Ramine2016-11-271-4/+4
|
* Implement WebIDL namespacesAnthony Ramine2016-09-081-2/+5
|
* Reorder some stuff in bindings::interfaceAnthony Ramine2016-09-061-101/+101
|
* Remove NonNullJSNativeAnthony Ramine2016-09-061-5/+1
|
* Move WebIDL constants machinery to bindings::constantAnthony Ramine2016-09-061-58/+3
|
* Simplify InterfaceConstructorBehaviorAnthony Ramine2016-09-061-32/+30
|
* Define interface members on the global object directly (fixes #4593)Anthony Ramine2016-08-251-10/+14
|
* Pass a MutableHandleObject to create_global_objectAnthony Ramine2016-08-251-16/+14
|
* Make create_global_object take a &'static ClassAnthony Ramine2016-08-251-1/+1
|
* Rename utils::create_dom_object to interface::create_global_objectAnthony Ramine2016-08-251-14/+57
|
* Make define_constants unsafeAnthony Ramine2016-08-251-10/+8
|
* Update SpiderMonkey to m-c bcf4ff0c3eef.Ms2ger2016-07-281-48/+44
| | | | | | This currently breaks Servo on Android, because there are a number of interdependent changes that cannot easily land serially in a way that keeps it working throughout. We expect to fix this in the near future.
* Implement the [Exposed] extended attribute on interfaces.Ms2ger2016-07-121-0/+9
| | | | Fixes #2823.
* Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-17/+17
|
* Implement [Unscopable] (fixes #11583)Anthony Ramine2016-06-071-8/+40
|
* Implement [Func]Anthony Ramine2016-05-271-4/+4
|
* Rename receiver to global in bindings::interfaceAnthony Ramine2016-05-261-8/+8
|
* Remove some 'static lifetimes from bindings::interfaceAnthony Ramine2016-05-261-18/+18
|
* Make define_constants privateAnthony Ramine2016-05-261-1/+4
|
* Remove utils::Prefable in favour of guard::GuardAnthony Ramine2016-05-261-25/+26
|
* Remove Prefable::terminator 🤖Anthony Ramine2016-05-261-4/+12
|
* Simplify how Prefable arrays are passed in bindings::interfaceAnthony Ramine2016-05-261-18/+16
|
* Use JS_NewStringCopyN for the representation of interface objectsAnthony Ramine2016-05-161-9/+9
| | | | | This removes the need for the final null byte and we can make NonCallbackInterfaceObjectClass::new safe again I guess.
* Auto merge of #10756 - servo:smup, r=Ms2gerbors-servo2016-05-031-19/+16
|\ | | | | | | | | | | | | | | Update SpiderMonkey <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10756) <!-- Reviewable:end -->
| * Update SpiderMonkeyAnthony Ramine2016-05-031-19/+16
| |
* | Implement hiding of interface members via Pref annotations.Josh Matthews2016-05-021-8/+22
| |
* | Start generating arrays of specs for easier implementation of preference checks.Josh Matthews2016-05-021-15/+23
|/
* Refactor the `call` hook on non-callback interface objects (fixes #10744)Anthony Ramine2016-04-251-8/+51
| | | | | | | | | | | It's now set through the intermediate InterfaceConstructorBehavior structure, which lets us improve the abstraction around NonCallbackInterfaceObjectClass a bit better. When the interface's constructor is supposed to always throw, the error for calling `Foo()` without new is "Illegal constructor.". when the interface actually defines an interface, the error is instead "This constructor needs to be called with `new`.".
* Make NonCallbackInterfaceObjectClass::new unsafeAnthony Ramine2016-04-251-1/+1
|
* Make all interface objects share the same funToStringGuillaume Gomez2016-03-211-11/+21
|
* Cache legacy callback interface objects in proto_or_icache_arrayAnthony Ramine2016-02-251-6/+7
| | | | | We need them to be cached to not instantiate them multiple times with lazy initialisation.
* All interface objects now share the same hasInstanceGuillaume Gomez2016-02-171-19/+34
|
* Fix the hasInstance hook of interface objectsAnthony Ramine2016-02-151-10/+17
| | | | Step 2 wasn't properly implemented.
* Clean up imports in script::dom::bindings::interfaceAnthony Ramine2016-02-151-4/+2
|
* Move ConstantSpec, NonNullJSNative and define_constants from utils to interfacenxnfufunezn2016-01-241-3/+63
|
* implement NonCallbackInterfaceObjectClass::as_jsclass()apopiak2016-01-141-1/+8
|
* Fix prototypes of interface objects (fixes #2665)Anthony Ramine2016-01-121-8/+7
|
* Inline create_constructor into its only callerAnthony Ramine2016-01-121-28/+13
|