Josh Matthews
9a7cd31134
Force all messages to worker tasks to send a TrustedWorkerAddress along with the ScriptMsg. This ensures that the main-thread Worker object is rooted for as long as there are events in flight or being processed.
2014-12-29 13:53:49 -05:00
Josh Matthews
2f059c15e7
Allow refcounting arbitrary DOM objects in concert with the GC to enable safe, asynchronous/cross-task references to pinned objects.
2014-12-29 13:53:48 -05:00
bors-servo
c4b93d30e4
auto merge of #4494 : Ms2ger/servo/wpt_20141228, r=Manishearth
2014-12-28 03:30:43 -07:00
Ms2ger
139e91e398
Update web-platform-tests.
2014-12-28 10:39:11 +01:00
bors-servo
56d1b16d1b
auto merge of #4173 : Manishearth/servo/a-more-dom-struct, r=kmcallister
...
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.
A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
2014-12-27 22:12:45 -07:00
bors-servo
dbb1074782
auto merge of #4490 : Ms2ger/servo/transmutes, r=jdm
2014-12-27 12:27:46 -07:00
bors-servo
b139574cdc
auto merge of #4489 : Manishearth/servo/transmute-lint-fix, r=Ms2ger
2014-12-27 09:10:02 -07:00
Ms2ger
0031498e6b
Remove some transmute calls.
2014-12-27 17:07:32 +01:00
Manish Goregaokar
93c350e6e3
plugins: Fix transmute lint message
2014-12-27 21:35:49 +05:30
bors-servo
9857ea26cb
auto merge of #4485 : servo/servo/into_string, r=Ms2ger
...
`str::to_string()` goes through a `Formatter`, `str::into_string()` is a direct copy and is apparently 5× faster.
This is a rebase of the boring and bitrot-prone parts of #4366 .
2014-12-27 06:51:44 -07:00
Manish Goregaokar
e0b88a9ca2
servo: to_string() -> into_string()
2014-12-27 14:48:36 +01:00
Manish Goregaokar
c7dfb1d24b
layout: to_string() -> into_string()
2014-12-27 14:48:36 +01:00
Manish Goregaokar
e9d1740e19
script: to_string() -> into_string()
2014-12-27 14:48:36 +01:00
Manish Goregaokar
475ff4dcb7
style: to_string() -> into_string()
2014-12-27 14:48:35 +01:00
Manish Goregaokar
e973213606
gfx: to_string() -> into_string()
2014-12-27 14:48:35 +01:00
Manish Goregaokar
50c246bdc5
Fix warnings post-upgrade
2014-12-27 03:28:35 +05:30
Manish Goregaokar
21a888341d
Ensure that Reflectors are the first field
2014-12-27 02:53:36 +05:30
Manish Goregaokar
d761877ef6
Add inheritance-checking lint
2014-12-27 02:53:35 +05:30
Manish Goregaokar
7d65673561
Remove extra spaces
...
Command: `find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/}\\n\\n\\n/}\\n\\n/"`
2014-12-27 02:53:35 +05:30
Manish Goregaokar
552db382d6
Remove manual impls of Reflectors (autogen)
...
Obtained via:
`find . -maxdepth 1 -type f -print0 | xargs -0 sed -z -i "s/\\nimpl Reflectable for[^{]*{[^}]*}[^}]*}\\n//"`
`find . -maxdepth 1 -type f -print0 |xargs -0 grep -lZ dom_struct | xargs -0 grep -LZ "reflector()\\|Reflector::new" |xargs -0 sed -z -i "s/use dom::bindings::utils::{Reflectable, Reflector, reflect_dom_object};/use dom::bindings::utils::reflect_dom_object;/"`
followed by semi-automated removal of leftover imports
2014-12-27 02:52:33 +05:30
Manish Goregaokar
21607f066c
Add internal plugin for creating Reflectable implementations
2014-12-27 02:43:13 +05:30
Manish Goregaokar
dd8360fb10
Use inline(always) for trace()
2014-12-27 02:43:12 +05:30
bors-servo
3af73e9962
auto merge of #4353 : brunoabinader/servo/domtokenlist, r=Ms2ger
...
Specs:
https://dom.spec.whatwg.org/#dom-domtokenlist-add
https://dom.spec.whatwg.org/#dom-domtokenlist-remove
https://dom.spec.whatwg.org/#dom-domtokenlist-toggle
https://dom.spec.whatwg.org/#concept-dtl-update
https://dom.spec.whatwg.org/#concept-ordered-set-serializer
Closes #3138 .
2014-12-26 13:18:45 -07:00
Bruno de Oliveira Abinader
3624673d2f
Updated web-platform-tests results
2014-12-26 14:55:27 -04:00
Bruno de Oliveira Abinader
5afcf3ef65
Implement DOMTokenList.toggle
2014-12-26 14:55:27 -04:00
Bruno de Oliveira Abinader
2cfb4648ce
Implement DOMTokenList.remove
2014-12-26 14:55:27 -04:00
Bruno de Oliveira Abinader
aa29dc195d
Implement DOMTokenList.add
2014-12-26 14:55:27 -04:00
Bruno de Oliveira Abinader
08e7cf24cd
DOMTokenList::check_token_exceptions now returns an Atom
2014-12-26 14:55:26 -04:00
Bruno de Oliveira Abinader
51fac3d2cc
Added Element::get_tokenlist_attribute
2014-12-26 14:55:26 -04:00
Bruno de Oliveira Abinader
8859286a99
Added AttrValue::from_atomic_tokens & Element::set_atomic_tokenlist_attribute
2014-12-26 14:55:26 -04:00
Bruno de Oliveira Abinader
c5f7e553e4
Avoid duplicated tokens in AttrValue::from_serialized_tokenlist
2014-12-26 13:08:20 -04:00
Bruno de Oliveira Abinader
eb3678fa28
AttrValue's s/from_tokenlist/from_serialized_tokenlist/
2014-12-26 13:08:20 -04:00
bors-servo
0e6304dcf7
auto merge of #4467 : servo/servo/dataset, r=Ms2ger
2014-12-25 02:27:43 -07:00
bors-servo
57b6dc9397
auto merge of #4479 : mattnenterprise/servo/globalref-by-value, r=jdm
2014-12-24 16:15:45 -07:00
Matt McCoy
bdb75c2146
This fixes #4166 . throw_dom_exception will take the GlobalRef by value, and all generated code will pass it by value.
2014-12-24 17:16:48 -05:00
bors-servo
070008b4c4
auto merge of #4478 : jdm/servo/hyperssl, r=larsbergstrom
...
This just updates rust-openssl and hyper to use cherry-picked commits that fix this particular issue. I think it's worth it because the experience of trying Servo for the first time right now is pretty terrible.
2014-12-24 11:15:45 -07:00
bors-servo
c35a18e81f
auto merge of #4477 : thiagopnts/servo/descriptive-enum, r=jdm
...
refs #4472
2014-12-24 10:45:45 -07:00
Josh Matthews
22c8d3df8d
Fix HTTPS fetches.
2014-12-24 12:41:38 -05:00
Ms2ger
919f2217f0
Implement dummy getOwnPropertyNames and enumerate traps.
2014-12-24 17:17:40 +01:00
thiagopnts
eacbe331c9
Replace bool attribute in Element::update_inline_style with a descriptive enum
2014-12-24 13:23:58 -02:00
bors-servo
194ce20969
auto merge of #4474 : thiagopnts/servo/generic-msgs, r=jdm
...
This refs #3735 . As discussed in the issue, I did it cloning when I couldn't dereference an attribute. The trait method should be on `&self` for object-safety reasons.
2014-12-24 03:45:44 -07:00
bors-servo
71b9f17b6b
auto merge of #4457 : jamougha/servo/master, r=jdm
...
Fixes #4411 .
I didn't find any tests for the text control functionality so I didn't write any for this, let me know if I should.
2014-12-23 23:45:45 -07:00
bors-servo
fb59e79299
auto merge of #4453 : mattnenterprise/servo/dispatch-mousemove, r=jdm
2014-12-23 23:15:47 -07:00
thiagopnts
271aa277e9
Replace XHR events for generic ones in ScriptTask
...
fixup! Replace XHR events for generic ones in ScriptTask
fixup! Replace XHR events for generic ones in ScriptTask
2014-12-23 23:53:38 -02:00
James Moughan
0a6ebfa3ee
Allow selection of all text in a text control using the ctrl-a/cmd-a shortcut.
...
Fixes #4411 .
2014-12-24 00:14:17 +00:00
Matt McCoy
75be44e744
This fixes #4259 . Dispatching the mousemove event for the top most node when the mouse moves while on top of it
2014-12-23 17:49:03 -05:00
bors-servo
7b7fe964d3
auto merge of #4463 : iterion/servo/get-property-priority, r=jdm
...
Implementation of #4432 adding `getPropertyPriority` to CSSStyleDeclaration. This is my first attempt at a Servo PR so I'm sure I've done something wrong. Let me know, and I'll fix it up.
As stated in #4432 tests for this are in #4085 . If there are additional tests I can write now I would love to do that, I'm just not sure where or what those would be.
2014-12-23 11:06:49 -07:00
Adam Sunderland
674fe910c1
Add GetPropertyPriority to CSSStyleDeclaration
...
Tweak getPropertyPriority to match recommendations
Adding Tests for Style Priority
Use else if
Adding Content Test for GetPropertyPriority
Revert "Adding Tests for Style Priority"
This reverts commit 8666a37f833b06c3e43f27acd8a9678e94425e55.
2014-12-23 11:41:33 -06:00
bors-servo
49f2c6974d
auto merge of #4471 : ProgramFOX/servo/issue-4433, r=jdm
...
Implemented CSSStyleDeclaration.setPropertyPriority, resolves #4433 .
2014-12-23 09:45:49 -07:00
ProgramFOX
07d37af37e
Implemented CSSStyleDeclaration.setPropertyPriority
...
Implemented CSSStyleDeclaration.setPropertyPriority, resolves #4433
2014-12-23 17:14:45 +01:00