Ms2ger
394f816343
Disallow lines that span more than 160 columns.
...
The Rust style guide suggests 100, but we have too many violations in the
tree already. This check can be tightened over time.
2015-01-19 13:48:32 +01:00
bors-servo
58c1b121a7
auto merge of #4654 : Ms2ger/servo/bindings-docs, r=jdm
2015-01-18 20:48:48 -07:00
Ms2ger
31edd21d68
Document global.rs.
2015-01-18 23:38:42 +01:00
Ms2ger
ecf0317bc0
Document error.rs.
2015-01-18 23:32:03 +01:00
Jim Hoskins
7759358e09
Implement Element#closest
...
fixes #4603
- Add definition to the Element.webidl and implementation to element.rs.
- Create inclusive_ancestors helper in NodeHelpers
- Update test expectations
2015-01-17 07:29:33 -08:00
bors-servo
2a9acdcb73
auto merge of #4540 : saneyuki/servo/internal, r=jdm
...
Fix #4504
2015-01-16 13:51:43 -07:00
Josh Matthews
66fee39045
Stop pretending to do anything except eagerly report pending exceptions after invoking a callback.
2015-01-14 13:05:32 -05:00
Josh Matthews
159235b3d0
Add handling for unreported exceptions when invoking callback objects.
2015-01-14 12:54:46 -05:00
Bruno de Oliveira Abinader
9da761fc64
Check quirks mode in {Document,Element}::getElementsByClassName
...
Fixes #4604 .
2015-01-12 17:38:13 -04:00
Tom Schuster
d54a45a2b1
Implement most of the important WindowProxy traps
2015-01-12 17:41:48 +01:00
Ms2ger
8efcca986c
Remove RethrowContentExceptions and related infrastructure.
...
We do not intend to implement the DOM in JS, so this code isn't necessary.
2015-01-10 20:22:03 +01:00
Tetsuharu OHZEKI
4629b7ccf0
fixup! Make script load event asynchronous for internal scripts
2015-01-11 03:38:57 +09:00
Tetsuharu OHZEKI
b984815b98
Make script load event asynchronous for internal scripts
2015-01-11 03:38:57 +09:00
Tetsuharu OHZEKI
f627b35ef6
Add the enum to describe the script origin.
2015-01-11 03:38:57 +09:00
bors-servo
879af966b3
auto merge of #4609 : Ms2ger/servo/runnable-self-by-value, r=jdm
2015-01-10 10:30:44 -07:00
bors-servo
e17d390714
auto merge of #4608 : Ms2ger/servo/ReverseChildrenIterator, r=jdm
2015-01-10 09:51:44 -07:00
Ms2ger
01444022b0
Make StructuredCloneData an opaque struct.
2015-01-10 17:47:42 +01:00
Ms2ger
b2f40b9873
Make Runnable::handler take self by value.
...
With my thanks to kimundi and eddyb for their help in making this approach
work.
2015-01-10 17:47:18 +01:00
Ms2ger
bc14c2c23b
Rewrite ReverseChildrenIterator to return Temporary.
2015-01-10 16:57:21 +01:00
Ms2ger
14ff55443f
Implement StructuredCloneData::read.
2015-01-10 16:33:26 +01:00
Ms2ger
5978b21abf
Implement StructuredCloneData::write.
2015-01-10 16:33:26 +01:00
Ms2ger
57aaa60fa5
Create a StructuredCloneData struct to encapsulate the result of a structured clone.
2015-01-10 16:33:25 +01:00
Martin Robinson
6a46eef5cd
Update FrameTree pipelines when appropriate
...
Instead of simply creating a new FrameTree when an iframe starts a
load, update the existing FrameTree's pipeline. This prevents the
FrameTree from accumulating many extra children.
2015-01-09 15:14:01 -08:00
bors-servo
ebb702ab94
auto merge of #4596 : jimrhoskins/servo/sandbox-tokenlist, r=jdm
...
Fixes #3758
Store the sandbox attribute of HTMLIFrameElement as a TokenList
internally. Use .tokens() to iterate over the tokens instead of
splitting on the string value.
The external interface for sandbox remains a DOMString, which will need
to be fixed when DOMSettableTokenList is implemented (#1717 ).
2015-01-09 14:27:45 -07:00
Jim Hoskins
e8036accd6
Store HTMLIFrameElement sandbox attr as TokenList
...
Fixes #3758
Store the sandbox attribute of HTMLIFrameElement as a TokenList
internally. Use .tokens() to iterate over the tokens instead of
splitting on the string value.
The external interface for sandbox remains a DOMString, which will need
to be fixed when DOMSettableTokenList is implemented (#1717 ).
2015-01-09 11:24:41 -08:00
Edit Balint
81f47344d6
CanvasRenderTask connected to Layout
...
Update rust-azure to f4a02f3f621b0a994a20d42e438371a87c62f898.
2015-01-09 18:53:10 +01:00
bors-servo
6b3c05cdd2
auto merge of #4585 : Ms2ger/servo/NavigatorInfo, r=jdm
...
It serves no purpose.
2015-01-09 07:48:49 -07:00
bors-servo
f74d5360ba
auto merge of #4584 : Ms2ger/servo/unsafe, r=jdm
...
As a first start, this allows them indiscriminately where used.
2015-01-09 07:15:52 -07:00
Arpad Borsos
322daccb42
Fix assertion trying to remove a Node that has no parent
...
fixes #4562
2015-01-09 12:47:28 +01:00
Ms2ger
8afc104d4b
Remove the NavigatorInfo struct.
...
It serves no purpose.
2015-01-09 12:10:08 +01:00
Ms2ger
edc1d89251
Deny unsafe blocks in script.
...
As a first start, this allows them indiscriminately where used.
2015-01-09 10:13:25 +01:00
bors-servo
0793137631
auto merge of #4575 : mttr/servo/warnings, r=jdm
...
Notes:
* This adds `#![allow(missing_copy_implementations)]` to components/*/lib.rs. I'm not sure how to approach the missing Copy warnings (are there things for which Copy should NOT be implemented, and how can I tell?) so I stuck this in to make life easier when looking through the warnings. I can easily remove this if necessary.
* This leaves the following type of warnings, which I couldn't figure out how to approach (I'll investigate it later if no one else wants to).
```
css/matching.rs:72:23: 72:35 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:72 this_as_query.equiv(other)
^~~~~~~~~~~~
css/matching.rs:95:10: 95:49 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:95 impl<'a> Equiv<ApplicableDeclarationsCacheEntry> for ApplicableDeclarationsCacheQuery<'a> {
```
2015-01-08 16:03:55 -07:00
bors-servo
7800d98728
auto merge of #4566 : mattnenterprise/servo/globalref-by-value, r=Ms2ger
2015-01-08 13:12:55 -07:00
Matthew Rasmus
020a767849
Fix Equiv related deprecation warnings
...
...except where we have our own implementations of Equiv.
2015-01-08 08:51:11 -08:00
Matthew Rasmus
7bbce60e43
Fix renamed to slice::from_raw_buf
warning
2015-01-08 08:51:11 -08:00
Matthew Rasmus
6364636693
Fix use Deref instead
warning
2015-01-08 08:51:11 -08:00
Matthew Rasmus
dc72119998
Fix non_upper_case_globals
warnings
2015-01-08 08:51:11 -08:00
Matthew Rasmus
01d4739d16
Fix variable does not need to be mutable
warning
2015-01-08 08:51:10 -08:00
bors-servo
ec474ae835
auto merge of #4541 : Manishearth/servo/ban-stuff, r=jdm
...
Didn't do the `Vec<Temporary<T>>` banning since we might want to whitelist something there. I'll work on that next.
2015-01-08 09:30:54 -07:00
Matt McCoy
5a54843111
Fixes #4164 Make file.rs Constructor and new functions take GlobalRef by value
2015-01-08 11:18:16 -05:00
bors-servo
df6a7959df
auto merge of #4069 : guillaumebort/servo/fix/3936, r=jdm
2015-01-08 08:48:54 -07:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Matt McCoy
85df7f0d6f
Fixes #4164 Make Constructor and new functions take GlobalRef by value
2015-01-07 18:52:41 -05:00
Guillaume Bort
5fe3a3e54f
Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString)
2015-01-07 11:39:15 +01:00
Ms2ger
e6b2715186
Remove spawn_named_native.
...
All threads are native now, so this was just an alias for spawn_named.
2015-01-05 09:20:40 +01:00
Ms2ger
76b0e2d3c7
Simplify vtable_for.
2015-01-05 08:55:00 +01:00
bors-servo
ba8cf6b0e6
auto merge of #4542 : servo/servo/pre-rustup_20141221, r=saneyuki
...
In particular, this contains changes to qualify enums where rust will require it, and to stop using some features that will be removed.
2015-01-04 12:39:47 -07:00
bors-servo
2e17cae5d0
auto merge of #4495 : MeghaGupta/servo/typeid, r=Ms2ger
2015-01-04 12:12:48 -07:00
Ms2ger
b94140f55e
Qualify image_cache_task::Msg.
2015-01-04 16:10:04 +01:00
Ms2ger
986d2b822c
Qualify CanvasMsg.
2015-01-04 16:03:55 +01:00