Commit graph

1067 commits

Author SHA1 Message Date
Ms2ger
bc8ed81dc1 Use a larger small vector. 2015-04-02 09:47:30 +02:00
Ms2ger
879c3710f4 Cleanup Document::Title. 2015-04-02 09:47:29 +02:00
bors-servo
dfa16e049f auto merge of #5337 : ChrisParis/servo/replacenode-fragment, r=metajack
Fixes #5336
2015-04-01 15:48:42 -06:00
bors-servo
ae31d9d9e8 auto merge of #5414 : mmatyas/servo/canvas_arcto, r=jdm
Based on the implementation in Firefox.

After comparing how `arcTo` works in different browsers, I've found the code in Firefox the cleanest implentation. It also performed better on some test, for example the one on [this site](1865210/mindcat/arcto.html). In (Linux) Firefox 36, it looks like [this](http://i59.tinypic.com/2ch5b2d.png), while in Chromium 41, [some features are missing](http://i58.tinypic.com/30u5w8z.png).
2015-04-01 15:00:43 -06:00
Chris Paris
8b9162c49d Fix mutation record when ReplaceChild handles DocumentFragment 2015-04-01 10:40:12 -10:00
bors-servo
6bedf4a229 auto merge of #5459 : jdm/servo/reflowquery, r=saneyuki 2015-04-01 14:03:43 -06:00
Mátyás Mustoha
56303e21cc Canvas: added arcTo() support. 2015-04-01 21:20:05 +02:00
bors-servo
afbc51a746 auto merge of #5430 : Manishearth/servo/userscript_path, r=kmcallister
r? @kmcallister
2015-04-01 13:15:46 -06:00
Manish Goregaokar
f41acb589a Give userscripts its own module; panic on broken paths 2015-04-01 23:20:38 +05:30
Josh Matthews
a3c13d8a40 Make reflow queries always perform reflow. Fixes #5458. 2015-04-01 11:56:47 -04:00
bors-servo
f25604c7f1 auto merge of #5474 : servo/servo/script-for-event, r=Ms2ger
...ne of them is present (fixes #5258).
2015-04-01 07:06:46 -06:00
Florian Eula
6288a468b9 Implement the onsubmit event handler (fixes #5396). 2015-04-01 13:15:06 +02:00
Keith Yeung
fdcf9618cb Handle the for and event attributes on a script element correctly when one of them is present (fixes #5258). 2015-04-01 12:43:17 +02:00
bors-servo
4846607e18 auto merge of #5469 : mbrubeck/servo/yodalee-issue4768-textencoder, r=jdm
This is a series of already-reviewed changes by @yodalee from #5025, rebased onto current servo master, with some fixups applied:

* Fixed build errors/warnings from the latest rust upgrade.
* Marked `tests/wpt/web-platform-tests/encoding/single-byte-decoder.html` as expecting CRASH.

I could not verify locally that the new test annotation is correct, since the test appears to hang rather than crash on my Linux box.  (Or maybe I just didn't wait long enough.)  If this crash isn't consistent, or if it takes a long time, maybe we should skip this test instead?

r? @jdm
2015-03-31 20:06:49 -06:00
yodalee
9cd976a4e7 Implement TextEncoder
Fixes #4768.
2015-03-31 17:21:27 -07:00
snf
1cc5bd4287 broadcasting storage changes events 2015-03-31 21:51:41 +01:00
bors-servo
225d7d2ece auto merge of #5457 : deokjinkim/servo/navigator_appversion, r=jdm
In my mistake, I close PR for this commit.
I'm sorry for inconvenience.

@jdm 's comment
The test expectations for /tests/wpt/web-platform-tests/html/dom/interfaces.html and /tests/wpt/web-platform-tests/workers/interfaces.workers.js will need to be updated - http://mxr.mozilla.org/servo/search?string=appversion

According to your guide, I revised commit. Is this your intention?
r? @jdm 

cc @yichoi
2015-03-31 11:51:55 -06:00
bors-servo
ebdf1d494b auto merge of #5400 : pcwalton/servo/transitions-redux, r=glennw
Transition events are not yet supported, and the only animatable
properties are `top`, `right`, `bottom`, and `left`. However, all other
features of transitions are supported. There are no automated tests at
present because I'm not sure how best to test it, but three manual tests
are included.

r? @glennw
2015-03-31 10:39:56 -06:00
Patrick Walton
66dd8c8a6c layout: Implement CSS transitions per CSS-TRANSITIONS § 2.
Transition events are not yet supported, and the only animatable
properties are `top`, `right`, `bottom`, and `left`. However, all other
features of transitions are supported. There are no automated tests at
present because I'm not sure how best to test it, but three manual tests
are included.
2015-03-31 08:46:11 -07:00
Deokjin Kim
c0e691b08d Implement Navigator.appVersion(#5409) 2015-04-01 00:36:40 +09:00
bors-servo
52cc63a262 auto merge of #5166 : JIoJIaJIu/servo/gc, r=jdm 2015-03-31 09:24:58 -06:00
bors-servo
018e1f726d auto merge of #5451 : frewsxcv/servo/cleanup-css-style-declarations, r=Ms2ger
* Group imports
* Convert seralization helper function to use `Iterator::fold`
* Remove basically pointless `serialize_value` helper function
* Wrap lines longer than 100 chars
* Add URLs to spec
2015-03-30 10:55:03 -06:00
Corey Farwell
86c254ab6f Cleanup script::dom::cssstyledeclarations
* Group imports
* Convert seralization helper function to use `Iterator::fold`
* Remove basically pointless `serialize_value` helper function
* Wrap lines longer than 100 chars
* Add URLs to spec
2015-03-30 12:38:06 -04:00
bors-servo
629edc5c46 auto merge of #5379 : genkku/servo/code_value, r=jdm
Changed Key::N to KeyN, also changed Equals to Equal, and NumpadEquals to NumpadEqual.
2015-03-30 07:58:06 -06:00
Mátyás Mustoha
0a3b4f2f65 Canvas: arc throws IndexSizeError on negative radius. 2015-03-30 11:05:33 +02:00
Mikko Vanhatalo
ee1aa6c999 Fixed code_value values for Equal & KpEqual 2015-03-30 11:52:18 +03:00
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
Manish Goregaokar
4d2ca2d8e2 Allow passing a path to --userscripts 2015-03-28 14:59:11 +05:30
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