aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/bindings/utils.rs
Commit message (Collapse)AuthorAgeFilesLines
* Renamed BrowsingContext to WindowProxy in script.Alan Jeffrey2017-05-121-2/+2
|
* Add way to get c_void ptr or c_char from callermckaymatt2017-04-041-1/+22
|
* Eliminate a mem::transmute in CodeGenGregory Katz2017-02-201-5/+5
|
* Update js, AGAINAnthony Ramine2016-11-271-6/+6
|
* Update js.Ms2ger2016-11-271-15/+0
|
* Issue #13377 Extract panic-catching for JS engine callbacks into aHugo Thiessard2016-09-261-0/+15
| | | | separate function
* Make DOMJSClass use JSClass instead of Class (fixes #13031)Tetsuharu OHZEKI2016-08-261-1/+1
|
* Pass the receiver to get_property_on_prototype (fixes #11600)Anthony Ramine2016-08-251-3/+3
|
* Make has_property_on_prototype fallibleAnthony Ramine2016-08-251-5/+8
|
* Mark get_property_on_prototype and has_property_on_prototype as unsafeAnthony Ramine2016-08-251-30/+29
|
* Rename utils::create_dom_object to interface::create_global_objectAnthony Ramine2016-08-251-48/+8
|
* Implement the [Exposed] extended attribute on interfaces.Ms2ger2016-07-121-0/+3
| | | | Fixes #2823.
* Switch to using the new rooted!/RootedGuard API for rooting.Eduard Burtescu2016-07-041-19/+18
|
* Auto merge of #11329 - c-rhodes:11320, r=jdmbors-servo2016-05-271-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Report use statements that use {} with only one entry 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 --faster` does not report any errors - [X ] These changes fix #11320 (github issue number if applicable). Either: - [X] 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="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/11329) <!-- Reviewable:end -->
| * Report use statements that use {} with only one entryCullen Rhodes2016-05-271-1/+1
| |
* | Remove utils::Prefable in favour of guard::GuardAnthony Ramine2016-05-261-22/+0
| |
* | Remove Prefable::terminator 🤖Anthony Ramine2016-05-261-10/+3
|/
* Move DOMString back to scriptAnthony Ramine2016-05-241-3/+3
| | | | This entirely removes the 'non-geckolib' feature of the util crate.
* codegen: Throw a more descriptive invalid enum messageEmilio Cobos Álvarez2016-05-131-3/+4
|
* Auto merge of #10756 - servo:smup, r=Ms2gerbors-servo2016-05-031-25/+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-25/+16
| |
* | Implement hiding of interface members via Pref annotations.Josh Matthews2016-05-021-2/+25
| |
* | Start generating arrays of specs for easier implementation of preference checks.Josh Matthews2016-05-021-0/+6
|/
* Refactor the `call` hook on non-callback interface objects (fixes #10744)Anthony Ramine2016-04-251-12/+1
| | | | | | | | | | | 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`.".
* Lazily define interface objects on globals (fixes #6419)Anthony Ramine2016-02-251-7/+61
|
* Lazily-define standard ECMAScript classesAnthony Ramine2016-02-251-7/+5
|
* Stop returning an Option from Window::browsing_context.Ms2ger2016-02-231-1/+1
| | | | | A Window always has a WindowProxy; the only reason it's wrapped in a nullable field is the order in which those objects are created.
* Bump heapsize to 0.3Anthony Ramine2016-02-131-1/+2
|
* Say farewell to in-tree HeapSizeOfAnthony Ramine2016-02-041-1/+1
|
* Move ConstantSpec, NonNullJSNative and define_constants from utils to interfacenxnfufunezn2016-01-241-62/+5
|
* Fix prototypes of interface objects (fixes #2665)Anthony Ramine2016-01-121-5/+5
|
* Refactor prototype initialisationAnthony Ramine2016-01-121-190/+12
| | | | | | | | | | | | | The function do_create_interface_objects is removed in favour of 4 functions: create_callback_interface_object, create_interface_prototype_object, create_noncallback_interface_object and create_named_constructors. While this increases the amount of codegen'd code, this greatly improves the readability of the code involved in this part of DOM, instead of having one function doing 4 different things. We can always find a more adequate abstraction later. NativeProperties and everything related to the interface objects have been removed from the utils module.
* Remove NativePropertyHooksAnthony Ramine2016-01-121-12/+0
|
* Use features to prevent the util component from entraining the world in ↵Bobby Holley2016-01-111-1/+1
| | | | GeckoLib builds.
* Rename the browsercontext module.Ms2ger2015-12-111-2/+2
|
* Initialize the slots of global objects before a possible GC.Ms2ger2015-12-101-16/+10
|
* Implement [Unforgeable]Anthony Ramine2015-12-021-0/+8
| | | | | | | | | | | | | | | | | | | | | | This is mostly stolen from Gecko. As there, we define the unforgeable members on an object stored in the slots of the prototype object. They are then copied onto instance objects when they are instantiated. It should be noted that proxy objects see their unforgeable memebers defined on their expando object. Unforgeable attributes aren't properly inherited in codegen (in a similar fashion as getters and setters as filed in #5875) and require to be redefined in derived interfaces. Fortunately, there are currently no such interfaces. No unforgeable members can be included into the TestBinding interfaces for good measure because they are not compatible with setters. Given the unforgeable holder object has the same prototype as actual instances of the interface, the finalize hook needs to check its slot pointer for nullity before dropping it. The new failing test isn't related to Unforgeable attributes, but to the fact that all Document instances currently have a Location, even if their window isn't in a browsing context.
* Remove unused slot in prototype object (fixes #8588)Anthony Ramine2015-11-301-19/+0
|
* Remove `#[allow(raw_pointer_derive)]` attributesBrandon Fairchild2015-11-271-3/+0
| | | | | | The attributes are unused. Fixes #8699.
* Rename a confusing argument.Ms2ger2015-11-191-2/+2
|
* Rustfmt some of script.Ms2ger2015-11-181-106/+152
|
* Use the conversion traits from js.Ms2ger2015-11-121-6/+7
|
* Use throw_type_error and throw_range_error from js.Ms2ger2015-11-121-1/+2
|
* Clean up the conversion routinesAnthony Ramine2015-11-111-7/+3
| | | | | | | | Functions returning `Root<T>` are prefixed by "root_" and the ones returning `*const T` by "native_". Functions taking `*mut JSObject` are now suffixed by "_from_object" and the ones taking `&T` by "_from_reflector".
* Make DOMString a newtype around String, rather than a typedef.Ms2ger2015-11-041-1/+1
| | | | | | | | | | 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.
* more cleanuprohan.prinja2015-10-301-3/+1
|
* rearrange imports to be in alphabetical orderrohan.prinja2015-10-301-1/+1
|
* replace InheritTypes imports with inheritance importsrohan.prinja2015-10-301-1/+1
|
* more refactoringrohan.prinja2015-10-301-239/+0
|
* Auto merge of #8242 - Ms2ger:update-js, r=metajackbors-servo2015-10-281-1/+1
|\ | | | | | | | | | | | | | | | | | | Update js. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8242) <!-- Reviewable:end -->