Anthony Ramine
ca15dd5eea
Introduce GlobalScope::process_event
2016-10-06 21:35:56 +02:00
Anthony Ramine
cdf3ef05e7
Introduce GlobalScope::new_script_pair
2016-10-06 21:35:55 +02:00
Anthony Ramine
144dc62575
Do not use GlobalRoot in CodegenRust anymore
2016-10-06 21:35:55 +02:00
Anthony Ramine
02d38e74e9
Make Promise::Reject and Resolve take a &GlobalScope
2016-10-06 21:35:54 +02:00
Anthony Ramine
26455b8a67
Remove global_root_from_reflector
2016-10-06 21:35:54 +02:00
Anthony Ramine
4d9347d5b3
Introduce GlobalScope::enqueue_promise_job
2016-10-06 21:35:53 +02:00
Anthony Ramine
6e3be6d894
Introduce GlobalScope::flush_promise_jobs
2016-10-06 21:35:52 +02:00
Anthony Ramine
514819f37a
Introduce GlobalScope::get_runnable_wrapper
2016-10-06 21:35:51 +02:00
Anthony Ramine
991801488c
Move timers to GlobalScope
2016-10-06 21:35:51 +02:00
Anthony Ramine
9c04eb60bd
Move JS evaluation functions to GlobalScope
2016-10-06 21:35:50 +02:00
Anthony Ramine
19108aa330
Pass a &GlobalScope to WebIDL static methods and constructors
2016-10-06 21:35:49 +02:00
Anthony Ramine
1fd470889d
Introduce GlobalScope::networking_task_source
2016-10-06 21:35:49 +02:00
Anthony Ramine
a7305b7fc4
Introduce GlobalScope::script_chan
2016-10-06 21:35:48 +02:00
Anthony Ramine
71236e168a
Introduce GlobalScope::core_resource_thread
2016-10-06 21:35:48 +02:00
Anthony Ramine
bad49e4696
Introduce GlobalScope::resource_threads
2016-10-06 21:35:46 +02:00
Anthony Ramine
86d2008137
Introduce GlobalScope::report_an_error
2016-10-06 21:35:46 +02:00
Anthony Ramine
766010379e
Introduce GlobalScope::as_window
2016-10-06 21:35:45 +02:00
Anthony Ramine
f38159b7d3
Introduce GlobalScope::get_url
2016-10-06 21:35:44 +02:00
Anthony Ramine
3302a53d38
Introduce GlobalScope::api_base_url
2016-10-06 21:35:43 +02:00
Anthony Ramine
ac5c4c2194
Make Error::to_jsval take a &GlobalScope
2016-10-06 21:35:42 +02:00
Anthony Ramine
b3393fba18
Make StructuredCloneData::read take a &GlobalScope
2016-10-06 21:35:40 +02:00
Anthony Ramine
896d8d4781
Make throw_dom_exception take a &GlobalScope
2016-10-06 21:35:39 +02:00
Anthony Ramine
ae6af5172b
Introduce Reflectable::global_scope
2016-10-06 21:35:38 +02:00
Anthony Ramine
27f100b1d4
Introduce GlobalScope::pipeline_id
2016-10-06 20:59:13 +02:00
Anthony Ramine
c6ff767625
Introduce GlobalScope::scheduler_chan
2016-10-06 20:59:13 +02:00
Anthony Ramine
f789e73fd2
Introduce GlobalScope::constellation_chan
2016-10-06 20:59:12 +02:00
Anthony Ramine
ae3763e7b3
Introduce GlobalScope::time_profiler_chan
2016-10-06 20:59:12 +02:00
Anthony Ramine
bfa7d045d0
Introduce GlobalScope::mem_profiler_chan
2016-10-06 20:59:11 +02:00
Anthony Ramine
fe6fca9e1f
Introduce GlobalScope::devtools_chan
2016-10-06 20:59:11 +02:00
Anthony Ramine
14a0b8d88c
Move console timers to GlobalScope
2016-10-06 20:59:11 +02:00
Anthony Ramine
d7c2da450b
Introduce GlobalScope::live_devtools_updates
2016-10-06 20:59:10 +02:00
Anthony Ramine
3e5c0c386c
Introduce GlobalScope::get_next_worker_id
2016-10-06 20:59:10 +02:00
Anthony Ramine
fcb59d3057
Make reflect_dom_object take a &GlobalScope
2016-10-06 20:59:09 +02:00
Anthony Ramine
5a42bb58f9
Implement [Inline] interfaces
...
Inline interfaces just appear as a Rust type and in the TypeId hierarchy.
They are completely invisible on the JS side.
2016-10-06 20:59:08 +02:00
Anthony Ramine
b745866a4d
Prevent doing use self::FooBinding::{}
2016-10-06 20:59:08 +02:00
Anthony Ramine
c5ab84638d
Make TopTypeId an untagged union
2016-10-06 00:35:04 +02:00
bors-servo
136c9a89b9
Auto merge of #13572 - nox:cleanup-global, r=jdm
...
Clean up some global things
<!-- 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/13572 )
<!-- Reviewable:end -->
2016-10-04 17:19:11 -05:00
Simon Sapin
d15ac9be55
Don’t pretend DOMRefCell is Send or Sync, after all.
2016-10-04 18:35:03 +02:00
Simon Sapin
fbde392c3d
Revert "Make DOMRefCell use style’s copy of RefCell"
...
This reverts commit ec723057b2
.
2016-10-04 18:35:01 +02:00
Simon Sapin
c831369e3e
Move DOMRefCell back into script.
...
We’re not using it in style after all.
2016-10-04 18:35:00 +02:00
Anthony Ramine
1aebe9fde6
Simplify GlobalRef::resource_threads
2016-10-04 14:01:34 +02:00
Anthony Ramine
e2dfcb658b
Remove GlobalRef::get_worker_id
2016-10-04 13:58:26 +02:00
Anthony Ramine
dd5c527689
Replace ScriptHelpers by GlobalRef methods
2016-10-03 11:42:21 +02:00
Anthony Ramine
f892008907
Remove GlobalRef::history_traversal_task_source
2016-10-02 23:06:54 +02:00
Anthony Ramine
3d719aafa6
Remove GlobalRef::dom_manipulation_task_source
2016-10-02 23:06:50 +02:00
Anthony Ramine
fce0a8e7cf
Reorganise CGDescriptor
...
Group some codegen operations together.
2016-10-02 16:51:59 +02:00
bors-servo
ec4f61e538
Auto merge of #13449 - servo:fill_property_descriptor, r=jdm
...
Pass a MutableHandle to fill_property_descriptor.
<!-- 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/13449 )
<!-- Reviewable:end -->
2016-09-30 05:06:15 -05:00
bors-servo
c212234258
Auto merge of #13508 - tschneidereit:fix-sh-methods-codegen, r=emilio
...
Fix codegen for iterable's forEach method
<!-- 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: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #13451 (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. -->
The `forEach` method installed on iterable DOM interfaces uses SpiderMonkey's self-hosted implementation of `Array.prototype.forEach`, but it has the wrong value for `nargs`, causing failing asserts in debug and wrong behavior in release builds.
Fixes #13451
<!-- 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/13508 )
<!-- Reviewable:end -->
2016-09-29 20:21:32 -05:00
Till Schneidereit
9a8f520047
Fix codegen for iterable's forEach method
...
The `forEach` method installed on iterable DOM interfaces uses SpiderMonkey's self-hosted implementation of `Array.prototype.forEach`, but it has the wrong value for `nargs`, causing failing asserts in debug and wrong behavior in release builds.
Fixes #13451
2016-09-29 12:35:11 +02:00
bors-servo
341fb72fc9
Auto merge of #13431 - nox:webidl, r=Ms2ger
...
Update the WebIDL parser
<!-- 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/13431 )
<!-- Reviewable:end -->
2016-09-28 07:07:16 -05:00