Commit graph

1039 commits

Author SHA1 Message Date
bors-servo
350a35428a auto merge of #5448 : frewsxcv/servo/fix-assert, r=Ms2ger
We should ensure the parameter is lowercased. Right now, the assert will
always return true.

Discussed in #5445

Introduced in ee2ccc4f87
2015-03-29 20:31:01 -06:00
bors-servo
39556cc832 auto merge of #5422 : bdero/servo/bdero/box-syntax, r=jdm
Closes #5417
2015-03-29 17:10:01 -06:00
Corey Farwell
ae9b1636b1 Fix useless assert in script::dom::element
We should ensure the parameter is lowercased. Right now, the assert will
always return true.

Discussed in #5445

Introduced in ee2ccc4f87
2015-03-29 17:54:01 -04:00
Corey Farwell
d838fcce30 Remove some unnecessary uses of as_slice
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:

* `String` -> `str`
* `Atom` -> `str`

The latter of those two requires, a bump of the locked `string-cache`
library
2015-03-29 14:42:19 -04:00
Brandon DeRosier
ccc55d658f Use box syntax instead of Box::new()
Closes #5417
2015-03-29 13:41:14 -04:00
Mukilan Thiyagarajan
e8a1e9eabb Implement RootedVec<T> 2015-03-29 11:58:25 +02:00
Corey Farwell
46f14449d0 Add links to spec for script::dom structs/methods 2015-03-28 20:04:30 -04:00
bors-servo
e70beca74b auto merge of #5435 : frewsxcv/servo/dom-attr-cleanup, r=jdm
* Wrap lines longer than 100 characters
* Add whatwg specification links for official methods
* Other misc cleanup/modernization
2015-03-28 14:40:02 -06:00
bors-servo
674e52afa1 auto merge of #5416 : Ms2ger/servo/int, r=jdm 2015-03-28 13:58:02 -06:00
Corey Farwell
3a5c94cf70 Cleanup and modernize script::dom::attr
* Wrap lines longer than 100 characters
* Add whatwg specification links for official methods
* Other misc cleanup/modernization
2015-03-28 15:11:54 -04:00
Ms2ger
e106ad84bf Remove some unused imports.
These became unused in f45db7714c; I don't know
why I didn't notice that.
2015-03-28 17:23:48 +01:00
Ms2ger
54c006d159 Use u32 for reflow ids. 2015-03-28 15:36:36 +01:00
Patrick Walton
0fcaa3ce03 script: Fix O(n^2) dirty bit marking when setting style on all immediate
children of a node.
2015-03-27 19:06:57 -07:00
bors-servo
55f9bd5d6f auto merge of #5413 : Ms2ger/servo/percent-encoding, r=jdm 2015-03-27 18:09:59 -06:00
bors-servo
e916ee081a auto merge of #5401 : frewsxcv/servo/cleanup-element, r=Ms2ger 2015-03-27 16:25:00 -06:00
Thiago Pontes
1244f9e016 Notify devtools about new worker globals 2015-03-27 16:04:53 -03:00
Ms2ger
f45db7714c Simplify URLSearchParams::serialize's percent-encoding. 2015-03-27 15:35:13 +01:00
bors-servo
5dd43bf84c auto merge of #5389 : Manishearth/servo/trace_raw, r=jdm 2015-03-26 20:51:51 -06:00
Corey Farwell
b5d3e77716 Cleanup and modernize script::dom::element 2015-03-26 17:58:38 -04:00
bors-servo
07e271b4e5 auto merge of #5392 : leavengood/servo/fix-alphabetic-key-codes, r=jdm 2015-03-26 14:30:56 -06:00
bors-servo
8127e1e1e9 auto merge of #5390 : leavengood/servo/backquote-handling, r=jdm 2015-03-26 13:12:53 -06:00
Ryan Leavengood
0d0be2aa1d Fix #5374: Use correct codes for alphabetic chars 2015-03-26 14:06:57 -04:00
Manish Goregaokar
1a952b935b blanket impl jstraceable on *T 2015-03-26 22:42:47 +05:30
Ryan Leavengood
99121e3096 Fix #5367: Map GraveAccent to Backquote 2015-03-26 13:11:50 -04:00
bors-servo
265f313de3 auto merge of #5387 : Manishearth/servo/macro_path, r=Ms2ger 2015-03-26 10:39:57 -06:00
Manish Goregaokar
c9ccf7aeb4 make no_jsmanaged_fields not require imports 2015-03-26 22:05:28 +05:30
bors-servo
699ace844c auto merge of #5375 : frewsxcv/servo/xhr-docs, r=jdm
Also adding some newlines for visual separation between
functions/methods
2015-03-26 06:33:50 -06:00
bors-servo
96fb1dac3d auto merge of #5377 : frewsxcv/servo/rm-node-iter, r=jdm
Was introduced in 7aee1cae84

I noticed it isn't actively in use, so unless there's some bigger reason
why it exists, it could probably be removed
2015-03-25 23:30:48 -06:00
bors-servo
432739164b auto merge of #5359 : aweinstock314/servo/moz-events, r=jdm
Addresses #5352.

This is based on https://github.com/glennw/servo/tree/moz-events
2015-03-25 20:00:54 -06:00
Corey Farwell
01ac9a6c87 Remove unused script::dom::node::NodeIterator
Was introduced in 7aee1cae84

I noticed it isn't actively in use, so unless there's some bigger reason
why it exists, it could probably be removed
2015-03-25 21:45:28 -04:00
Corey Farwell
14a9871792 Add comments linking XHR code to XHR specification
Also adding some newlines for visual separation between
functions/methods
2015-03-25 20:35:31 -04:00
Corey Farwell
ed64e6a7c6 Remove enum variant prefix in XMLHttpRequestState
It was originally titled XHRDone to prevent conflicts with other
variants called Done. This was done before enum namespacing landed, but
now that it has, the prefixing is not necessary.
2015-03-25 20:04:58 -04:00
Avi Weinstock
cb9cfe2b22 Replace (String, Option<String>) with MozBrowserEvent in uses of MozBrowserEventMsg. 2015-03-25 17:07:59 -04:00
Glenn Watson
7163a3c580 Add mozbrowser events for location + title change. 2015-03-26 05:19:03 +10:00
bors-servo
f29ea4e4ef auto merge of #5302 : mmatyas/servo/canvas_stroke, r=jdm
This is the servo side patch of servo/rust-azure#149.
2015-03-25 07:54:50 -06:00
Mátyás Mustoha
698b88f71d Canvas: added stroke() support. 2015-03-25 12:52:05 +01:00
bors-servo
e77c4e2d76 auto merge of #5346 : saneyuki/servo/binding, r=jdm
- Fix #707
- Take over from #5106
2015-03-25 01:09:47 -06:00
Tetsuharu OHZEKI
bc06526610 Add guards to almost CanvasRenderingContext2D methods according to the spec.
http://www.w3.org/html/wg/drafts/2dcontext/html5_canvas_CR/ says

"Except where otherwise specified, for the 2D context interface,
 any method call with a numeric argument whose value is infinite or a
 NaN value must be ignored."

We might define the annotation to generate this behavior in glue code.
However, at now, I use this workaround way.
2015-03-25 15:13:34 +09:00
Tetsuharu OHZEKI
05c6d046dd Enable unrestricted types for CanvasRenderingContext2D. 2015-03-25 15:13:33 +09:00
Corey Farwell
605e21c406 Add links for script::dom::window to whatwg HTML spec 2015-03-24 23:34:22 -04:00
Tetsuharu OHZEKI
9cd1b2c158 Use Finite<T> for our dom code (excluding CanvasRenderingContext2D) 2015-03-25 10:45:30 +09:00
Tetsuharu OHZEKI
4c96732077 Support the conversion behavior from ECMAScript value to restricted float.
This is defined by WebIDL spec:

- http://heycam.github.io/webidl/#es-float
- http://heycam.github.io/webidl/#es-double
2015-03-25 10:45:30 +09:00
Tetsuharu OHZEKI
f7fd34c0aa Introduce Finite<T: Float> for restricted values defined in WebIDL. 2015-03-25 10:45:30 +09:00
Tetsuharu OHZEKI
2bf2c0020b Add bindings support for unrestricted float/double values. 2015-03-25 10:45:30 +09:00
bors-servo
2ab1ece765 auto merge of #5231 : dmarcos/servo/issue4784, r=jdm
...ce
2015-03-24 14:01:06 -06:00
Diego Marcos
e3f5a76baa Implementing canvas drawImage API for HTML Canvas elements as image source 2015-03-24 12:23:15 -07:00
snf
db6aeef2ef implementing StorageEvent interface 2015-03-24 18:03:06 +00:00
bors-servo
1432b630d2 auto merge of #5343 : frewsxcv/servo/script-dom-window, r=jdm 2015-03-24 10:33:55 -06:00
Corey Farwell
0f2fd77bb1 Clean up a few things in script::dom::window 2015-03-24 09:43:50 -04:00
bors-servo
8f45268420 auto merge of #5334 : frewsxcv/servo/cleanup-document, r=Ms2ger 2015-03-24 06:54:48 -06:00