Commit Graph

766 Commits

Author SHA1 Message Date
Ms2ger
5807e210bd servo: Merge #3632 - Remove support for {return,native,concrete}Type overrides in Bindings.conf (from Ms2ger:bindings-conf); r=Manishearth
We have no reason to support non-default type names, and this commit corrects
the computations for callbacks (which needed the override until now).

Source-Repo: https://github.com/servo/servo
Source-Revision: 0ded2bb1ecb7da791c1296c2a2415f49705f8334
2014-10-13 17:00:47 -06:00
Glenn Watson
396ac1d4e4 servo: Merge #3608 - Expose user agent option to DOM navigator interface (from glennw:user-agent-navigator); r=Ms2ger
This also makes command line options available as a global. If we're happy with that change I will go through the rest of the code and update it to avoid passing and cloning the Opts structure.

Source-Repo: https://github.com/servo/servo
Source-Revision: 81620d6bce12819db5b97330e48be52674b39ffb
2014-10-13 15:21:44 -06:00
Manish Goregaokar
57c9401915 servo: Merge #3642 - Implement extremely basic form submission (from Manishearth:form-submit); r=jdm
This is missing a lot of parts, so it doesn't really make any real-world form submission work yet. It provides a skeleton on which the missing bits can be filled in.

What works:
 - `<input>` elements except for `type=file`
 - GET/POST methods
 - URLencoded `enctype`s (default)
 - Submission via `<form>.submit()` only

Stuff that needs to be done for most simple real-world cases to work:
 - [Working text input](https://github.com/servo/servo/pull/3585)
 - Click handlers for `<submit>`
 - Possibly `<textarea>` support
 - Support for the other two enctypes (#3649)

Todo:
 - Correctly implement [planned navigation](https://html.spec.whatwg.org/multipage/forms.html#planned-navigation) using `TrustedFormAddress`  (#3648)
 - [Correctly implement form owners.](https://github.com/servo/servo/issues/3553) Requires html5ever and some discussion of the spec.
 - `<input type=file>` support
 - Image submit support
 - Browsing contexts/targets
 - Support for non-`<input>` controls
 - Validation (?)
 - Dirname (?)

Source-Repo: https://github.com/servo/servo
Source-Revision: 9dfd5e7fcd2011a411b219e8c45aadc0ecb270bd
2014-10-11 07:45:39 -06:00
Patrick Walton
47c280c684 servo: Merge #3639 - Use Gecko's simpler Bloom filter instead of one based on hash (from pcwalton:rewrite-bloom-filter); r=zwarich
stretching.

This preserves the usage of the Bloom filter throughout style recalc,
but the implementation is rewritten. Provides a 15% improvement on
Guardians of the Galaxy.

Source-Repo: https://github.com/servo/servo
Source-Revision: e048f3f940e124d45b43a53a850177c45907822d
2014-10-10 20:27:39 -06:00
Clark Gaebel
c0d7a56ba4 servo: Merge #3590 - Incremental Style Recalc (from cgaebel:slow-incremental-reflow-rebase); r=pcwalton
This patch puts in the initial framework for incremental reflow. Nodes' styles
are no longer recalculated unless the node has changed.

I've been hacking on the general problem of incremental reflow for the past
couple weeks, and I've yet to get a full implementation that actually passes all
the reftests + wikipedia + cnn. Therefore, I'm going to try to land the different
parts of it one by one.

This patch only does incremental style recalc, without incremental flow
construction, inline-size bubbling, reflow, or display lists. Those will be coming
in that order as I finish them.

At least with this strategy, I can land a working version of incremental reflow,
even if not yet complete.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 85b277655f07db1cb99c4d3dee93804735ed0470
2014-10-09 11:21:32 -06:00
Tim Taubert
1b867d1d8a servo: Merge #3620 - Remove unnecessary deref()s (fixes #3586) (from ttaubert:issue/3586-remove-derefs); r=Manishearth
r? @Manishearth

Source-Repo: https://github.com/servo/servo
Source-Revision: 510f8a817f8144dd5046886d4ca7c612f19a3d08
2014-10-09 07:12:37 -06:00
Tim Taubert
36bbbe717e servo: Merge #3577 - Use HashMap::find_with_or_insert_with in DocumentHelpers::register_named_element (fixes #3193) (from ttaubert:issue/3193-named-element-mangle); r=jdm
Should probably use HashMap::entry() but that doesn't seem to be available with servo's current rust snapshot.

r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: a127fcd854ae0e31d05f34232f595833ccc2ba9e
2014-10-08 13:15:32 -06:00
Manish Goregaokar
5beea4b3fe servo: Merge #3605 - Improve macro getters, add macro setters, implement attributes for <form> (from Manishearth:form-stuff); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 94731270df688f2df49fdec36ccf7eefd9ed021f
2014-10-08 03:42:34 -06:00
Tim Taubert
f15d9faaa2 servo: Merge #3584 - Support [*|attr], attribute selectors in any namespace (fixes #1558) (from ttaubert:issue/1558-attr-ns-selectors); r=Manishearth
This implements basic support for attribute selectors with namespace prefixes. I would have added a more sophisticated test covering various selectors but it seems that we don't have an XML parser yet and thus no XHTML support?

r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: f49c730720a51d14dacefe9815faf50216b36b91
2014-10-08 03:12:34 -06:00
Gilles Leblanc
f23abdd361 servo: Merge #3575 - Take the prefix from createElementNS into account for HTML elements (from gilles-leblanc:issue-3139); r=Ms2ger
Fixes #3139

Source-Repo: https://github.com/servo/servo
Source-Revision: a4b414746bc2b067251d7a543b43fe136b319bdc
2014-10-07 01:33:32 -06:00
Manish Goregaokar
052cbff92f servo: Merge #3518 - Purge Traceable and Untraceable from Servo (from Manishearth:trace-cleanup); r=jdm
Now that we use `JSTraceable` (defined in `script`), we can create arbitrary implementations on non-`script` types (eg `Url` or `RequestHeaderCollection`) where in the past we had to rely on `Traceable` and `Untraceable` to achieve cross-crate impls of `Encodable`.

This removes the two completely. They can be reintroduced if required, though the `untraceable!` macro should suffice.

Fixes #3469

Source-Repo: https://github.com/servo/servo
Source-Revision: b34df7c343579f200d2e67e21fc566842a4e4a91
2014-10-06 10:15:33 -06:00
Andrew Guertin
bae39bc337 servo: Merge #3569 - Replace Cell<Option<JS<T>>> with MutNullableJS<T> (from andrewguertin:mutnullablejs); r=Manishearth
https://github.com/servo/servo/issues/3564

Source-Repo: https://github.com/servo/servo
Source-Revision: d23e45fe5db54994f4f3569f8bda1ec5a6121610
2014-10-03 18:45:27 -06:00
Ms2ger
31623eae6c servo: Merge #3562 - Cleanup Document.find_fragment_node (from Ms2ger:cleanup-fragment-node); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a2531cd8aa0463e0941229b2f89f1433ad5b5e5e
2014-10-03 03:48:25 -06:00
Ms2ger
f430aa82ad servo: Merge #3558 - Remove the fragment_node field from Page (from Ms2ger:fragment-node); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 643a6d07a201d7db9325250522a80bc3357f11ce
2014-10-02 10:15:27 -06:00
Josh Matthews
2dfdae3733 servo: Merge #3520 - Implement basic form control support (from jdm:formcontrols); r=pcwalton
So far the changes to layout seem fairly well-contained; I think this is worth integrating to give us a browser that is easier to dogfood (and allows us to work on things like form submission much easier), especially since the long-term viability of WebComponents-as-forms is not assured.

Source-Repo: https://github.com/servo/servo
Source-Revision: f80096069592b864221abe112eaf2ecb6c444fda
2014-10-01 16:45:29 -06:00
Josh Matthews
5bcc29c13a servo: Merge #3531 - Implement MutNullableJS for mutable, nullable member pointers to DOM objects (from Ms2ger:MutNullableJS); r=Ms2ger
Extracted from #3527.

Source-Repo: https://github.com/servo/servo
Source-Revision: bae5440689c67f425f94ec27bf0f61ff955dc290
2014-10-01 09:09:28 -06:00
Cameron Zwarich
efa78b5e73 servo: Merge #3542 - Remove extra lifetime parameters (from zwarich:more-jsref); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: a840fed78a493a481683ef73dae923190d87ba6c
2014-10-01 04:03:29 -06:00
Cameron Zwarich
22d42a57e8 servo: Merge #3541 - Convert the NodeHelpers trait to use self methods (from zwarich:more-jsref); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: f73e5088219cd6deeea0d4f0612cad750fc532a9
2014-10-01 02:51:27 -06:00
Cameron Zwarich
c71169cdfc servo: Merge #3540 - Convert TNode / TElement to use self parameters rather than &self (from zwarich:more-jsref); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 09e9abc047e03b81b8a4aa90d13efa184d0a732f
2014-09-30 22:36:28 -06:00
Cameron Zwarich
7da378cb4c servo: Merge #3536 - Convert a method from &JSRef to JSRef (from zwarich:more-jsref); r=Manishearth
This also removes the unnecessary formation of a trait object.

Source-Repo: https://github.com/servo/servo
Source-Revision: 93e259227a969dbea1319d4d3ce92bc5706c6b06
2014-09-30 18:39:27 -06:00
Keegan McAllister
8578d570cb servo: Merge #3530 - Use string-cache's Namespace type, backed by Atom (from kmcallister:namespace-atom); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 698b916c097ae0272a31a680cba7fc6dbd03ca3d
2014-09-30 02:42:23 -06:00
Bruno de Oliveira Abinader
486a5adfa6 servo: Merge #3491 - CSS selector :enabled no longer matches Anchor, Area & Link elements (from brunoabinader:css-selector-enabled-remove-anchor-area-link-elems); r=Ms2ger
HTML spec has been modified [1] to disable support for :enabled CSS
selector on Anchor, Area & Link elements, after discussion on W3C
Bugzilla [2].

[1] https://html5.org/r/8818
[2] https://www.w3.org/Bugs/Public/show_bug.cgi?id=26622

Next step: Move :enabled CSS selector content test to web-platform-tests.

Source-Repo: https://github.com/servo/servo
Source-Revision: d9e26352a1adbd182fc0a7b54eb32f43540267bb
2014-09-29 12:27:26 -06:00
Simon Sapin
b3423c8393 servo: Merge #3487 - Upgrade Rust and enable style crate rustdoc (from servo:rustup-20140923); r=Ms2ger
The biggest language change is that enum variants now also reserve (for future use) a name in the type namespace, which must not collide with other types. Some things were renamed, and others qualified as `module::name`.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7409685589c550ee7a9f94182f511acddab4c6fd
2014-09-29 10:45:27 -06:00
Ms2ger
7a5be2490b servo: Merge #3522 - Don't move the data when extracting the bytes in XMLHttpRequest::Send (from Ms2ger:xhr-send-uaf); r=SimonSapin
The data is used later to set the Content-Type header. Current rustc
(4d2af3861) does not detect this use-after-move, but treats the later use as
if the data was None. It will, however, detect the bug in d2b30f7d3, which we
are upgrading to.

Source-Repo: https://github.com/servo/servo
Source-Revision: a58324f25b6f87d005026d8f9405c9f0d89a1f74
2014-09-29 09:57:27 -06:00
Ms2ger
5b1979e9c4 servo: Merge #3509 - Fix indentation in is_htmliframeelement (from Ms2ger:indentation-iframe)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 6184c13f9515caa2277c5ad4e997824d8cee171e
2014-09-28 07:45:27 -06:00
Rohan Prinja
d35bd7be7d servo: Merge #3508 - trace keys as well (from wenderen:JSTraceable.key)
Reviewed-by: Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 42205675b31db21b1b8ef04bf4def912ecac69b5
2014-09-27 23:21:28 -06:00
Cameron Zwarich
4150491f96 servo: Merge #3501 - Remove the 'static lifetime parameters from TElement methods (from zwarich:telement-lifetimes)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c9c8d63727560ab88a8b739f5ac305b8a02410d2
2014-09-27 17:09:28 -06:00
Cameron Zwarich
d12bfba8c2 servo: Merge #3497 - Add an extended_deref method to JSRef (from zwarich:extended-deref)
Reviewed-by: Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: c10948736f1f7a8e6d6dcb1987a92818fb1f4003
2014-09-27 12:48:30 -06:00
Cameron Zwarich
530b318c29 servo: Merge #3496 - Convert &JSRef -> JSRef in DisabledStateHelpers (from zwarich:disabled-state-helpers-jsref)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a35212410ae78a19db99d284d63a00d1a72dbd79
2014-09-26 20:24:33 -06:00
Cameron Zwarich
5757ae9676 servo: Merge #3493 - Improve the correctness of Root lifetimes (from zwarich:root-lifetimes)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 86eec63a02161de84f2404ff2292d3a8d1273784
2014-09-26 19:57:33 -06:00
ProgramFOX
4860dbe4ab servo: Merge #3489 - Made some DOM fields private (from ProgramFOX:issue2242-2)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 39b6bd9b9586d101943055202a7e06eb8d349dd8
2014-09-26 19:30:33 -06:00
Gilles Leblanc
11933aefb7 servo: Merge #3432 - Handle dynamic addition of attributes (from gilles-leblanc:issue-3361)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1e5770a138b39683e28763b878b354c317bc0322
2014-09-26 19:00:35 -06:00
Cameron Zwarich
e462c34ddd servo: Merge #3495 - Convert &JSRef -> JSRef for the PrivateNodeHelpers trait (from zwarich:private-node-helpers-jsref)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1da014a13d4c8dee3d580cee3d75e1c879f37d3e
2014-09-26 18:36:38 -06:00
Cameron Zwarich
93fe906d1b servo: Merge #3480 - Fix trailing whitespace tidy errors (from zwarich:trailing-whitespace)
Reviewed-by: larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: c2d6d8084c7afc2b865a09cb4847fb1a815ef607
2014-09-25 17:00:34 -06:00
Ms2ger
1837bf51e7 servo: Merge #3477 - Move global_object_for_js_object to global.rs (from Ms2ger:global)
Reviewed-by: jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: d95b88c83043017cde8edb37b1e29352ccd15e5f
2014-09-25 14:48:32 -06:00
Manish Goregaokar
f9ff33e0ec servo: Merge #3468 - Replace our usage our Encodable with JSTraceable; r=jdm (from Manishearth:jstraceable)
Source-Repo: https://github.com/servo/servo
Source-Revision: 95a4731c0eec0cfb2fb70af534757bc7ca63e407
2014-09-24 20:55:41 +05:00
Ms2ger
1be3c71f2f servo: Merge #3465 - Handle null strings in Namespace::new (from Ms2ger:ns)
Source-Repo: https://github.com/servo/servo
Source-Revision: c7a575e79338c84652cc0d0cb2f85b1c438819b2
2014-09-24 10:30:13 -04:00
Ms2ger
10bba75344 servo: Merge #3443 - Remove the glob import for UnionTypes; r=jdm (from Ms2ger:uniontypes)
Source-Repo: https://github.com/servo/servo
Source-Revision: fd5c6e8512d379751cca1bf82ea735adacdf681e
2014-09-21 22:34:27 +02:00
Tetsuharu OHZEKI
3b3514eb3b servo: Merge #3442 - Make Document.idmap key to Atom; r=Ms2ger (from saneyuki:atom)
Source-Repo: https://github.com/servo/servo
Source-Revision: 61e17656cd17ea9bc1af1226376d9e8f2c24a8ad
2014-09-21 16:17:46 +02:00
Ms2ger
76a2ee8a3d servo: Merge #3441 - Don't use a glob import for codegen::{PrototypeList, RegisterBindings}; r=Manishearth (from Ms2ger:glob-import)
Source-Repo: https://github.com/servo/servo
Source-Revision: e7748216dfb315a286491d2635f6f20ac6842ff8
2014-09-21 16:13:25 +02:00
Simon Sapin
e245f210fb servo: Merge #3438 - Upgrade Rust (from servo:rustup)
Source-Repo: https://github.com/servo/servo
Source-Revision: 045328c8e94f5bdfcd67105c5dfa9209f4cd501c
2014-09-20 15:35:08 -07:00
Cameron Zwarich
60b0bd5f8d servo: Merge #3433 - More progress in the &JSRef -> JSRef conversion (from zwarich:jsref-self-helpers)
Source-Repo: https://github.com/servo/servo
Source-Revision: d6ba37c68c34a3748a789caeca225083275757e5
2014-09-20 12:55:21 -07:00
Jeongeun Kim
d7823bb187 servo: Merge #3364 - Implement HTMLOptionElement.text #3023 (from jejuliekim:option-text)
Source-Repo: https://github.com/servo/servo
Source-Revision: 545e9884a6907f04814c6008699c2bbcfef22edd
2014-09-20 15:03:11 -04:00
Adenilson Cavalcanti
d411a13dd7 servo: Merge #3428 - Move is_void() Element method together with the other struct methods (from Adenilson:moveIsVoidElement01)
Source-Repo: https://github.com/servo/servo
Source-Revision: 2adc594e5d8babaadbe1a4e05a8f7d808313728f
2014-09-20 13:53:22 -04:00
Gilles Leblanc
b37b91ef24 servo: Merge #3400 - Share code between Navigator and WorkerNavigator (from gilles-leblanc:issue-3279)
Source-Repo: https://github.com/servo/servo
Source-Revision: 249638da8f01a66b98be857fba7755c8625480f5
2014-09-20 09:12:04 -04:00
Tetsuharu OHZEKI
582d2f0c2b servo: Merge #3418 - Replace manual Encodable implementation for LayoutDataRef with Untraceable (from saneyuki:untrace)
Source-Repo: https://github.com/servo/servo
Source-Revision: de67710934ac89de0cf21911dc57dcda7cb0fae1
2014-09-20 16:40:06 +09:00
Cameron Zwarich
d6fa87d24b servo: Merge #3422 - First steps of &JSRef -> JSRef conversion (from zwarich:jsref)
Source-Repo: https://github.com/servo/servo
Source-Revision: e9ad87e27eb30cfacd66b575e104ee2784f95591
2014-09-19 19:28:32 -07:00
Chris Paris
b90f6202df servo: Merge #3253 - Implement TreeWalker (from ChrisParis:TreeWalker)
Source-Repo: https://github.com/servo/servo
Source-Revision: 6d6726178a02836b3089fe0dd13cd67d74fdc276
2014-09-19 10:54:26 -04:00
Josh Matthews
468a8a5fa0 servo: Merge #3172 - Dump initial prototype of devtools server into the build. Expect lies if (from jdm:devtools)
Source-Repo: https://github.com/servo/servo
Source-Revision: b82c0dced08ccda8c3c7f35643c3891bc45b058c
2014-09-19 09:15:03 -04:00
Cameron Zwarich
e125d86af8 servo: Merge #3416 - Remove uses of &mut JSRef (from zwarich:remove-jsref-mut)
Source-Repo: https://github.com/servo/servo
Source-Revision: d7ffe7a19864689735fa96b34c7a26baf97910a3
2014-09-18 22:25:48 -07:00