Commit graph

475 commits

Author SHA1 Message Date
Muhammad Zaheer
026e5e433f servo: Merge #5530 - Update the spec links in domexception.rs (fixes #5528) (from nmzaheer:updateSpecLinks); r=saneyuki
I have update the spec links as given in the comments. Hope i've done it right

Source-Repo: https://github.com/servo/servo
Source-Revision: 425b2be04f89ec7576a1933c99383853c7519a49
2015-04-05 04:48:48 -06:00
Matt Brubeck
590a7bc62f servo: Merge #5461 - Implement the :focus pseudo-class selector and element.focus/blur (from mbrubeck:focus); r=jdm
Fixes #5460. This supports for simple focusable elements that are their own DOM anchors, like text `input` fields.

Requires servo/rust-selectors#20.  r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: b63fb0c0a7e9cd9208d66319c910750aaaac844c
2015-04-04 18:21:48 -06:00
Bogdan Cuza
27841a3e43 servo: Merge #5522 - Support any number of arguments to console methods (fixes #5495) (from servo:console-variadic); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 8758d7d11abd3a0e84e2af5c41911b767723513e
2015-04-04 09:48:52 -06:00
Mikko Vanhatalo
22b4c1f779 servo: Merge #5385 - Implemented HTMLInputElement placeholder attribute (from minsumm:placeholder); r=jdm
I'm unsure whether I should wrap 'placeholder' in Cell, or DomRefCell, or leave as it is now.
Also, the spec says that the placeholder should be presented with line breaks stripped off,
should it be done in this stage?

Source-Repo: https://github.com/servo/servo
Source-Revision: 4ffeb81aa73fa87120eabb569fd14d7193813bdf
2015-04-04 08:24:48 -06:00
Ms2ger
82f444e9cd servo: Merge #5511 - Stop using int/uint in script (from Ms2ger:int); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 036b3eaa04fc4d94b8fd29a9c8e0f6020f55d23d
2015-04-03 13:54:46 -06:00
Manish Goregaokar
ab1238f36e servo: Merge #5465 - Split out shared networking code into net_traits crate (from gilles-leblanc:issue-4476-b); r=jdm
Fixes #4476

Source-Repo: https://github.com/servo/servo
Source-Revision: d707d1b78e3393a1ed164af8ec855bd0ff119e55

--HG--
rename : servo/components/net/image/test.jpeg => servo/components/net/test.jpeg
rename : servo/components/net/image/base.rs => servo/components/net_traits/image/base.rs
rename : servo/components/net/image/holder.rs => servo/components/net_traits/image/holder.rs
rename : servo/components/net/local_image_cache.rs => servo/components/net_traits/local_image_cache.rs
2015-04-03 13:00:46 -06:00
Ms2ger
54525fb6e1 servo: Merge #5501 - Add more documentation about the DOM bindings (from Ms2ger:docs); r=jdm
Most of this documentation is based on
<https://developer.mozilla.org/en-US/docs/Mozilla/WebIDL_bindings>.

Source-Repo: https://github.com/servo/servo
Source-Revision: 539c85f5ec1b05b29a099124c7d7b2664f67013e
2015-04-03 08:24:41 -06:00
Ms2ger
e137b3f89d servo: Merge #5492 - Introduce a MouseButton enum (from Ms2ger:MouseButton)
Source-Repo: https://github.com/servo/servo
Source-Revision: 02be76bd4855a226669e8fcd1a638ff53e8f83d5
2015-04-03 13:29:12 +02:00
Corey Farwell
ec44d356c9 servo: Merge #5484 - Improvements, cleanup for script::dom::document (from frewsxcv:document-cleanup); r=Ms2ger
* Add whatwg spec links for some Document methods
* Wrap some lines that exceed 100 characters
* Other misc cleanup/refactoring

Source-Repo: https://github.com/servo/servo
Source-Revision: c38d9ba6b9c71669a14890db82a512c0af483c14
2015-04-02 22:45:41 -06:00
aditya
89383d8b47 servo: Merge #5491 - Fix issue 5466 (from ChimeraCoder:fix-issue-5466); r=Manishearth
@kenpratt and I moved the URL and IFrame fields from Reflow to LayoutTask, as described in #5466.

This is my first attempt at Rust, so let me know how this is!

Source-Repo: https://github.com/servo/servo
Source-Revision: e4da29b28b6efce3f84f00ef7d2d1716954c500d
2015-04-02 14:18:42 -06:00
Patrick Walton
f6c17e1bb2 servo: Merge #5425 - script: Optimize JS rooting to not move the entire Root struct from the stack to the return out-pointer (from pcwalton:optimize-rooting); r=Ms2ger
This was showing up very high in instruction-level profiling.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 85808c1cdd39a3afdc9815247ceb6f0fb7e9a31b
2015-04-02 10:51:40 -06:00
Patrick Walton
cb3bd424c4 servo: Merge #5426 - script: Stop destroying all flows on every mouse-over event (from pcwalton:mouse-over-incremental-reflow); r=jdm
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 5457ec60983481fb436114d548f0872e274e420f
2015-04-02 09:57:40 -06:00
Ms2ger
7e83787b33 servo: Merge #5456 - Rewrite NodeChildrenIterator to return Temporary (from Ms2ger:children); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 88bc64444c99fc47febf8e99c0e19c6ae3500990
2015-04-02 05:15:38 -06:00
Chris Paris
d90ab5f9ca servo: Merge #5337 - Fix mutation record when ReplaceChild handles DocumentFragment (from ChrisParis:replacenode-fragment); r=metajack
Fixes #5336

Source-Repo: https://github.com/servo/servo
Source-Revision: dfa16e049fd6e34810ac5e0616c5203a891815a9
2015-04-01 15:48:42 -06:00
Mátyás Mustoha
f0707cb664 servo: Merge #5414 - Canvas: added arcTo() support (from mmatyas: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](http://flashcanvas.net/examples/dl.dropbox.com/u/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).

Source-Repo: https://github.com/servo/servo
Source-Revision: ae31d9d9e86eb90a1fe2858f10ca5e6e2e722c67
2015-04-01 15:00:43 -06:00
Josh Matthews
ace2c5ee02 servo: Merge #5459 - Make reflow queries always perform reflow. Fixes #5458 (from jdm:reflowquery); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: 6bedf4a229f07a9cce589466cb398cd5afdd382d
2015-04-01 14:03:43 -06:00
Manish Goregaokar
3a64a833f6 servo: Merge #5430 - Allow passing a path to --userscripts (from Manishearth:userscript_path); r=kmcallister
r? @kmcallister

Source-Repo: https://github.com/servo/servo
Source-Revision: afbc51a746af79f3daf14d77002a47967ef3d38e
2015-04-01 13:15:46 -06:00
Keith Yeung
c115a75fc4 servo: Merge #5474 - Handle the for and event attributes on a script element correctly when o (from servo:script-for-event); r=Ms2ger
...ne of them is present (fixes #5258).

Source-Repo: https://github.com/servo/servo
Source-Revision: f25604c7f1711ae1218552e529535edc7a60acb2
2015-04-01 07:06:46 -06:00
Florian Eula
19c6db4003 servo: Merge #5475 - Implement the onsubmit event handler (fixes #5396) (from servo:add-event-handlers); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: d74e6330a49275bc5d15d29ff55c081739ce3659
2015-04-01 05:18:47 -06:00
yodalee
eb0f1adfa5 servo: Merge #5469 - Implement TextEncoder (fixes #4768) (from mbrubeck: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

Source-Repo: https://github.com/servo/servo
Source-Revision: 4846607e189a65baf8d9ac6566594b7893d07f12
2015-03-31 20:06:49 -06:00
snf
bfcff3d7db servo: Merge #5419 - Send storage event (from snf:send_storage_event); r=jdm
Addresses #5196

Source-Repo: https://github.com/servo/servo
Source-Revision: c0c54875a282fd6d03daba71e6e764763be70e09
2015-03-31 15:51:52 -06:00
Deokjin Kim
c77a889e94 servo: Merge #5457 - Implement Navigator.appVersion(#5409) (from deokjinkim: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

Source-Repo: https://github.com/servo/servo
Source-Revision: 225d7d2ece418d5ecefd7ce9047c4754ffb68c73
2015-03-31 11:51:55 -06:00
Patrick Walton
c9e2901806 servo: Merge #5400 - layout: Implement CSS transitions per CSS-TRANSITIONS § 2 (from pcwalton: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

Source-Repo: https://github.com/servo/servo
Source-Revision: ebdf1d494b6c986e6dfcb7d8fd3f0ffa126523ed
2015-03-31 10:39:56 -06:00
Guro Bokum
b937bffcbb servo: Merge #5166 - RootCollection doesn't check if its SmallVec has spilled #5037 (from JIoJIaJIu:gc); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 52cc63a2622a77ee317f1b320be8ae7e478b2a43
2015-03-31 09:24:58 -06:00
Corey Farwell
dd91180ff0 servo: Merge #5451 - Cleanup script::dom::cssstyledeclarations (from frewsxcv: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

Source-Repo: https://github.com/servo/servo
Source-Revision: 018e1f726d0ec0bf3d0dee68594ef1151dc8049d
2015-03-30 10:55:03 -06:00
Mikko Vanhatalo
ed80e888c3 servo: Merge #5379 - Fixed code_value values (from minsumm:code_value); r=jdm
Changed Key::N to KeyN, also changed Equals to Equal, and NumpadEquals to NumpadEqual.

Source-Repo: https://github.com/servo/servo
Source-Revision: 629edc5c46a869b5bb6bc51b8d39b0115702a00c
2015-03-30 07:58:06 -06:00
Mátyás Mustoha
812d7ef3e7 servo: Merge #5455 - Canvas: arc throws IndexSizeError on negative radius (from mmatyas:canvas_arc_negativeradius); r=Ms2ger
"Negative values for radius must cause the implementation to throw an IndexSizeError exception."

Source-Repo: https://github.com/servo/servo
Source-Revision: 1bd8e18d92c291418ce6a5712f7b4503d9b5104c
2015-03-30 04:16:04 -06:00
Corey Farwell
1e7acc5e4e servo: Merge #5448 - Fix useless assert in script::dom::element (from frewsxcv:fix-assert); r=Ms2ger
We should ensure the parameter is lowercased. Right now, the assert will
always return true.

Discussed in #5445

Introduced in ee2ccc4f872ba33a86057d87a99d1015b3c41cf1

Source-Repo: https://github.com/servo/servo
Source-Revision: 350a35428ab547e45e86826d2a818cb15d004bf5
2015-03-29 20:31:01 -06:00
Brandon DeRosier
29ee916a7f servo: Merge #5422 - Use box syntax instead of Box::new() (from bdero:bdero/box-syntax); r=jdm
Closes #5417

Source-Repo: https://github.com/servo/servo
Source-Revision: 39556cc8328793478c0e34ff99e2d36d1ab4f5cb
2015-03-29 17:10:01 -06:00
Corey Farwell
f68ba10506 servo: Merge #5447 - Remove some unnecessary uses of as_slice (from frewsxcv:as-slice); r=jdm
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

Source-Repo: https://github.com/servo/servo
Source-Revision: 0fd41847a39be387c03bd5d8b6f2aec2b1bb6f66
2015-03-29 14:52:02 -06:00
Mukilan Thiyagarajan
6cd127a09d servo: Merge #5436 - Implement a replacement for Vec<Root<T>> (from servo:rooted-vec); r=Ms2ger,jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1282850b998ce82195a7099d950676fc1b53b86b
2015-03-29 05:07:01 -06:00
Corey Farwell
6a9953cad1 servo: Merge #5440 - Add links to spec for script::dom structs/methods (from frewsxcv:spec-links); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4cf76d65baa8ced9f748b0d5cd632c8852da134d
2015-03-28 19:01:03 -06:00
Corey Farwell
54af934234 servo: Merge #5435 - Cleanup and modernize script::dom::attr (from frewsxcv:dom-attr-cleanup); r=jdm
* Wrap lines longer than 100 characters
* Add whatwg specification links for official methods
* Other misc cleanup/modernization

Source-Repo: https://github.com/servo/servo
Source-Revision: e70beca74bb85bec1f0ea4bb84cea6fea3cfc439
2015-03-28 14:40:02 -06:00
Ms2ger
a866f2e1e2 servo: Merge #5416 - Remove some int/uints (from Ms2ger:int); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 674e52afa1012cb342629dab4d3abae975a16fe9
2015-03-28 13:58:02 -06:00
Ms2ger
a6a0dfc03e servo: Merge #5431 - Remove some unused imports (from Ms2ger:unused-imports); r=jdm
These became unused in f45db7714c8c3244fe20d1b0a104cb845d0b79f5; I don't know
why I didn't notice that.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2b9bfb9af387fba1a080bed070cf6134eb5d10e1
2015-03-28 11:07:03 -06:00
Patrick Walton
2394b6a563 servo: Merge #5427 - script: Fix O(n^2) dirty bit marking when setting style on all immediate children of a node (from pcwalton:accidentally-quadratic); r=Ms2ger
r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 5833dea7338f1331a36ca3e792bf7656f2d67bf9
2015-03-28 08:52:06 -06:00
Ms2ger
00a5e47538 servo: Merge #5413 - Simplify URLSearchParams::serialize's percent-encoding (from Ms2ger:percent-encoding); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 55f9bd5d6f95cde282909c9128c00e9644332729
2015-03-27 18:09:59 -06:00
Corey Farwell
9e49a08e92 servo: Merge #5401 - Cleanup and modernize script::dom::element (from frewsxcv:cleanup-element); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: e916ee081aac4739728843b5761c860983f6f913
2015-03-27 16:25:00 -06:00
Thiago Pontes
ebfcbc1f1f servo: Merge #5181 - Notify devtools about new worker globals (from thiagopnts:master); r=jdm
This is for #4704. I'm not sure if this is the best approach, so I'm open to suggestions.

Source-Repo: https://github.com/servo/servo
Source-Revision: 439e3150d74453b86abbcc7934b7e5152f102940
2015-03-27 13:33:56 -06:00
Manish Goregaokar
ef4b90fe68 servo: Merge #5389 - Blanket impl JSTraceable on raw pointers (from Manishearth:trace_raw); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 5dd43bf84c78063b6eaf505cab253c1666d969ce
2015-03-26 20:51:51 -06:00
Ryan Leavengood
43c977e9b0 servo: Merge #5392 - Fix #5374: Use correct codes for alphabetic chars (from leavengood:fix-alphabetic-key-codes); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 07e271b4e5a3aaa6e3e57084dd51b5e1ad987597
2015-03-26 14:30:56 -06:00
Ryan Leavengood
2f474821eb servo: Merge #5390 - Fix #5367: Map GraveAccent to Backquote (from leavengood:backquote-handling); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8127e1e1e9f601f1bcf718198d0c56ed9b6a99e6
2015-03-26 13:12:53 -06:00
Manish Goregaokar
85fba26593 servo: Merge #5387 - make no_jsmanaged_fields not require imports (from Manishearth:macro_path); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 265f313de3de12ee137073d4dfde5c35a33c789c
2015-03-26 10:39:57 -06:00
Corey Farwell
c1770f9cb8 servo: Merge #5375 - Add comments linking XHR code to XHR specification (from frewsxcv:xhr-docs); r=jdm
Also adding some newlines for visual separation between
functions/methods

Source-Repo: https://github.com/servo/servo
Source-Revision: 699ace844c939ab97180acad67a984dc71108a12
2015-03-26 06:33:50 -06:00
Corey Farwell
9a2592c2ae servo: Merge #5377 - Remove unused script::dom::node::NodeIterator (from frewsxcv:rm-node-iter); r=jdm
Was introduced in 7aee1cae84704b885988a5985a7604747125ec1e

I noticed it isn't actively in use, so unless there's some bigger reason
why it exists, it could probably be removed

Source-Repo: https://github.com/servo/servo
Source-Revision: 96fb1dac3d346cf2e46e5d5ec5abf79134743dad
2015-03-25 23:30:48 -06:00
Avi Weinstock
fc2aad4b45 servo: Merge #5359 - Moz events (from aweinstock314:moz-events); r=jdm
Addresses #5352.

This is based on https://github.com/glennw/servo/tree/moz-events

Source-Repo: https://github.com/servo/servo
Source-Revision: 432739164b1f3a117c0aac1dfc97b41018c89b46
2015-03-25 20:00:54 -06:00
Corey Farwell
3776f7efd7 servo: Merge #5372 - Remove enum variant prefix in XMLHttpRequestState (from frewsxcv:xhr-enum-prefix); r=jdm
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 88ca398cae4070957306890b0c7006ac7b9e5cef
2015-03-25 18:27:48 -06:00
Glenn Watson
1200ff0934 servo: Merge #5339 - Add mozbrowser events for location + title change (from glennw:moz-events); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 644dc405863cc5cdf7c562588cdd05c40d00ee35
2015-03-25 13:39:49 -06:00
Mátyás Mustoha
34409fd616 servo: Merge #5302 - Canvas: Added stroke support (from mmatyas:canvas_stroke); r=jdm
This is the servo side patch of servo/rust-azure#149.

Source-Repo: https://github.com/servo/servo
Source-Revision: f29ea4e4ef633c023a43f47f7fc8c6b46e51b8df
2015-03-25 07:54:50 -06:00
Tetsuharu OHZEKI
5bf2fed53e servo: Merge #5346 - Add bindings support for unrestricted float values (from saneyuki:binding); r=jdm
- Fix #707
- Take over from #5106

Source-Repo: https://github.com/servo/servo
Source-Revision: e77c4e2d76104855c42d1eee09caf36b61acccad
2015-03-25 01:09:47 -06:00