Commit graph

5642 commits

Author SHA1 Message Date
Ms2ger
9fd67a751f Implement a resource_task getter on GlobalRef.
This is needed to fetch resources on all threads.
2014-07-17 16:22:52 +02:00
Ms2ger
e22c8f9290 Store the ResourceTask on the WorkerGlobalScope.
This is necessary to load dependent resources, such as through new Worker(),
importScripts, XHR, ...
2014-07-17 16:06:22 +02:00
Ms2ger
31376a6a79 Inline DedicatedWorkerGlobalScope::init.
This was an unnecessary abstraction.
2014-07-17 15:45:32 +02:00
Ms2ger
603c0b889a Move the code to start the worker into DedicatedWorkerGlobalScope::run_worker_scope.
This is somewhat cleaner than keeping it all in the Worker constructor.
2014-07-17 15:34:09 +02:00
Edit Balint
90adcc6265 Improve snapshot storage system for easy bisection. Fix #2694. Fix #2851. 2014-07-17 13:26:42 +01:00
Ms2ger
a3127593c2 Merge pull request #2842 from Ms2ger/workers
Basic Web Workers; r=Manishearth,larsbergstrom
2014-07-17 14:16:40 +02:00
Lars Bergstrom
8da1abf776 Merge pull request #2812 from Ms2ger/deny-unused-variable
Deny unused variables.
2014-07-17 07:09:55 -05:00
Ms2ger
33a7fe4f7e Deny unused variables. 2014-07-17 12:06:47 +02:00
Ms2ger
ca2a5f150d Add a spec link for the Worker constructor. 2014-07-17 11:50:04 +02:00
Ms2ger
9524f8daa7 Explicitly spawn a native task for workers. 2014-07-17 11:49:11 +02:00
Patrick Walton
bfde6ac0a7 Merge pull request #2859 from glennw/wiki-layout-1
Partial fix for footer layout issues on wikipedia, ref #2554.
2014-07-16 22:16:13 -07:00
Glenn Watson
3f010907ad Partial fix for footer layout issues on wikipedia, ref #2554. 2014-07-17 14:30:29 +10:00
Cameron Zwarich
49d2bd741d Merge pull request #2858 from zwarich/scene-new
Rename Scene constructor to Scene::new
2014-07-16 20:38:22 -07:00
Cameron Zwarich
f073d28c75 Rename Scene constructor to Scene::new 2014-07-16 16:57:44 -07:00
Cameron Zwarich
27e87e58be Merge pull request #2856 from mrobinson/tile-cleanup
Changes reflecting the latest version of rust-layers
2014-07-16 16:09:44 -07:00
Glenn Watson
560e380767 Fix comments and variable names for atom wrapper. 2014-07-17 08:31:31 +10:00
Martin Robinson
4d6613c72e Changes reflecting the latest version of rust-layers
The Tile trait has been removed and TileGrid now keeps Tile structs with
Textures embedded instead of simply buffers. rust-layers now creates
its own textures instead of relying on Servo to do it.
2014-07-16 15:04:46 -07:00
Lars Bergstrom
718ddde1f8 Merge pull request #2845 from glennw/update-cg
Update submodule pointer for core-graphics
2014-07-16 10:05:57 -05:00
Ms2ger
39d2c0cb2c Merge pull request #2835 from brunoabinader/bind_to_tree_fix
Added 'parent is/was in tree' param to bind_to_tree/unbind_from_tree; r=Ms2ger
2014-07-16 15:55:36 +02:00
Manish Goregaokar
b70053006e Merge pull request #2852 from Ms2ger/MessageEvent
Implement MessageEvent.
2014-07-16 18:55:50 +05:30
Bruno de Oliveira Abinader
113bc48d6e Use tree_in_doc on Style elem to parse its own CSS, if needed 2014-07-16 09:03:30 -04:00
Bruno de Oliveira Abinader
aea4ccf849 Added 'parent is/was in tree' param to bind_to_tree/unbind_from_tree
According to a talk with Ms2ger, both bind_to_tree / unbind_from_tree
should be called regardless if the tree is part of a Document. This
information is now passed as a parameter to their respective virtual
methods.
2014-07-16 08:59:56 -04:00
Ms2ger
d40b97ea73 Implement MessageEvent. 2014-07-16 14:53:22 +02:00
Ms2ger
c40ad756e6 Create Worker objects. 2014-07-16 11:54:05 +02:00
Edit Balint
0b5a1b2ad9 Move timer firing implemention into Window #1992 2014-07-16 11:36:18 +02:00
Ms2ger
1fbf9f7749 Implement WorkerGlobalScope.self. 2014-07-16 11:26:50 +02:00
Cameron Zwarich
e8996d5ce5 Merge pull request #2849 from zwarich/disable-borders-test
Temporarily disable the 'borders' test
2014-07-15 23:08:57 -07:00
Cameron Zwarich
0e294a235f Temporarily disable the 'borders' test
This test has been failing locally on OS X for me for quite some time,
although since #2843 this started affecting the Travis builders as well.
Getting to the root of this problem is tracked by #2848.
2014-07-15 21:49:57 -07:00
Cameron Zwarich
cc30a99fb4 Merge pull request #2843 from mrobinson/tilegrid
Changes to support latest rust-layers
2014-07-15 18:39:11 -07:00
Martin Robinson
71173d7ae8 Respond to review comments 2014-07-15 16:15:35 -07:00
Glenn Watson
dc7abc6976 Update submodule pointer for core-graphics 2014-07-16 08:21:55 +10:00
Glenn Watson
dddd3346a6 Convert element name to be stored as atom instead of string. 2014-07-16 07:33:29 +10:00
Martin Robinson
d9540475f0 Changes to support latest rust-layers
Now tiles are stored in TileGrid and layer methods are simple instance
methods.
2014-07-15 14:06:16 -07:00
Ms2ger
f403135d9e Support Worker globals in global_object_for_js_object. 2014-07-15 22:29:04 +02:00
Ms2ger
747bfc6f15 Implement global.console in workers. 2014-07-15 22:29:04 +02:00
Ms2ger
3074b4747a Store the JSContext in a field on the worker global scope. 2014-07-15 22:29:04 +02:00
Ms2ger
b11440750b Load scripts in workers. 2014-07-15 22:29:03 +02:00
Ms2ger
7b7303e6bc Add a constructor for DedicatedWorkerGlobalScope. 2014-07-15 22:29:03 +02:00
Ms2ger
2d74f4d8d8 Spawn a thread for workers. 2014-07-15 22:29:03 +02:00
Ms2ger
25abe8b289 Parse the URL passed to the Worker constructor. 2014-07-15 22:29:03 +02:00
Ms2ger
d8152646f3 Add worker scope variants to the Global enums. 2014-07-15 22:29:03 +02:00
Ms2ger
a345f413cb Implement stub classes for WorkerGlobalScope and DedicatedWorkerGlobalScope.
Part of #2811.
2014-07-15 22:29:03 +02:00
Ms2ger
712955e96a Implement a stub Worker interface.
Part of #2811.
2014-07-15 22:29:03 +02:00
Ms2ger
d97ec69957 Merge pull request #2839 from Ms2ger/globals
Introduce abstractions for global scopes; r=Manishearth,larsberg
2014-07-15 22:28:43 +02:00
Ms2ger
df9d063b36 Add newlines in global.rs. 2014-07-15 20:09:07 +02:00
Ms2ger
350a6080d7 Support FormData outside Window scopes. 2014-07-15 20:08:11 +02:00
Lars Bergstrom
f816a92c72 Merge pull request #2825 from Ms2ger/wpt-expectations
Update web-platform-tests expectations.
2014-07-15 09:07:37 -05:00
Ms2ger
829259fb79 Introduce abstractions for global scopes.
Part of #2811.
2014-07-15 15:33:57 +02:00
Ms2ger
a14bb68c3f Remove some Cells for immutable members. 2014-07-15 15:33:57 +02:00
Ms2ger
e8d013794b Make some DOM fields private.
Relevant to #2242.
2014-07-15 15:33:56 +02:00