Commit Graph

2833 Commits

Author SHA1 Message Date
Mike Blumenkrantz
b89d8ffd01 servo: Merge #3947 - Embedding string map (from zmike:embedding-string_map); r=jdm
implements a string map which is 100% identical to CEF

r+ @larsbergstrom  @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 99fc4ab634738136daa993443042a4cbf68c510c
2014-11-13 17:06:30 -07:00
Mike Blumenkrantz
90169aef41 servo: Merge #3946 - Embedding fixups (from zmike:embedding-fixups); r=jdm
adds a missing string api function and renames an existing string_list function

r+ @larsbergstrom @jdm ?

Source-Repo: https://github.com/servo/servo
Source-Revision: 1773198e8d4c5ebe82b4780ebf0828833aa61846
2014-11-13 16:00:40 -07:00
Simon Sapin
3925345206 servo: Merge #3971 - Download Cargo over HTTPS. Fix #3582 (from SimonSapin:cargo-https); r=Ms2ger
Download from https://static-rust-lang-org.s3.amazonaws.com, which apparently does not require SNI? This bypasses the CloudFront CDN and goes to directly to S3.

CC @brson

Source-Repo: https://github.com/servo/servo
Source-Revision: 8cb2b922ef8541aee9207efbacf0c125b61f8aaf
2014-11-13 14:24:45 -07:00
Matt Brubeck
28f2fd7384 servo: Merge #3969 - Update html5ever ref in Android Cargo.lock (from mbrubeck:android-html5-cargo); r=larsbergstrom
Fixes a build error.

Source-Repo: https://github.com/servo/servo
Source-Revision: c713bf472400d79448ba53548884779719bf6459
2014-11-13 11:30:35 -07:00
Josh Matthews
4d3016e023 servo: Merge #3585 - Implement single-line text input (from jdm:input); r=gw
This attempts to implement a bunch of the DOM Level 3 Events spec by implementing the KeyboardEvent interface, the document focus context, and dispatching keyup/keydown/keypress events appropriately. There's also some support for multiline text input that's untested.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2ffa845cf463b14b19322d477a77ffd20efa89a9
2014-11-13 10:57:33 -07:00
Glenn Watson
22c4035692 servo: Merge #3948 - Rust upgrade to rustc hash b03a2755193cd756583bcf5831cf4545d75ecb8a (from servo:rustup-20141105_2); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: c5e1b0d32e17fad29799023c85e2e73ac89c3af7
2014-11-12 20:48:31 -07:00
Martin Robinson
8cec6a7fbe servo: Merge #3809 - Clip display list based on frame viewport (from mrobinson:display-list-optimization); r=pcwalton
Instead of creating a display list for the entire page, only create one
for an area that expands around the viewport. On my machine this makes
incremental layout of http://timecube.com 50% faster.

Source-Repo: https://github.com/servo/servo
Source-Revision: 26045d7fcbab8851fbefe2851cd904203f8fd8dd
2014-11-12 17:36:32 -07:00
Guillaume Bort
7f266cc2c6 servo: Merge #3938 - Fix #3933 (from guillaumebort:fix/3933); r=jdm
Implement HTMLOptionElement.{label,value}

Source-Repo: https://github.com/servo/servo
Source-Revision: 668d9217d8b8d999547fd1e8b690da8c8d80ddda
2014-11-12 15:15:38 -07:00
thiagopnts
67f027d5e5 servo: Merge #3955 - Move code related to json packet reading to JsonPacketSender trait (from thiagopnts:devtools-refactoring); r=jdm
I was messing around devtools code and saw some TODOs, is anyone working on it? I took one of them:

```// TODO: this really belongs in the protocol module.```

I would be glad to help with this if no one is on it already, just let me know.

Source-Repo: https://github.com/servo/servo
Source-Revision: 88ff8c61f075e6f8b6123b810f1be4acf444b3d1
2014-11-12 14:42:35 -07:00
Martin Robinson
ec4079121d servo: Merge #3951 - Iframes (from mrobinson:iframes); r=jdm
This is the first step to allowing incremental iframe creation and destruction. This should eliminate task failures when an iframe is added to the frame tree lazily via script.

Source-Repo: https://github.com/servo/servo
Source-Revision: ccdd2910a2df9921b22c9db74f84559d78019199
2014-11-11 18:48:34 -07:00
Guillaume Bort
7ce46deae8 servo: Merge #3934 - Close #84 (from guillaumebort:fix/84); r=jdm
Actually `<img>` elements in `<noscript>` are not prefetched anymore.

Probably because html5ever already parses the `<noscript>` content as raw
text data if `scripting_enabled` is activated.

See https://github.com/servo/html5ever/blob/servo/src/tree_builder/rules.rs#L126

Also, added a test to the images cache.

Source-Repo: https://github.com/servo/servo
Source-Revision: b94f20c7c119302754c3e47ff8e69fe6edc94af1
2014-11-11 14:30:39 -07:00
Cameron Zwarich
92f13f320e servo: Merge #3958 - Remove unnecessary import of libgreen (from zwarich:remove-libgreen); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: f4471f06029ac03aa2ee26aa4398daaab9c6a371
2014-11-11 03:18:38 -07:00
Ms2ger
2c6798b469 servo: Merge #3949 - Fix the documentation comment for logical_geometry.rs (from Ms2ger:logical_geometry); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: f0184a2d011e12845258a242d2d2f6b8b504a28d
2014-11-10 05:33:35 -07:00
Shing Lyu
e9f57feaf4 servo: Merge #3915 - Extract the script task handlers code into separate methods (from shinglyu:bug3811); r=jdm
This is a fix for bug #3811 , thank you.

Source-Repo: https://github.com/servo/servo
Source-Revision: fc62243f81ba4c5a3585b2a80c859fad16083557
2014-11-09 20:24:31 -07:00
Ms2ger
e3578e3f69 servo: Merge #3945 - Remove content tests that are already covered by wpt (from Ms2ger:rm-tests); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: d63a35012cda3439e767ecbe7dc83aaa0421fc7e
2014-11-09 16:21:31 -07:00
Ms2ger
6fd7b67bf9 servo: Merge #3942 - Remove VoidVal (from Ms2ger:VoidVal); r=jdm
There are no undefined constants in IDL.

Source-Repo: https://github.com/servo/servo
Source-Revision: 182a9a70de44cbefcaeeb0e8d19e3831a83b40b3
2014-11-09 09:09:31 -07:00
Ms2ger
57a1c01f31 servo: Merge #3943 - Call waitForExplicitFinish in test_img_width_height.html (from Ms2ger:img_width_height); r=jdm
This fixes an intermittent failure introduced in
<https://github.com/servo/servo/pull/3929>.

Source-Repo: https://github.com/servo/servo
Source-Revision: caba4b3e76b50018c4ee805532f7784c34cea92a
2014-11-09 07:51:31 -07:00
Matt Brubeck
2dc36c5fd4 servo: Merge #3925 - Build fixes for Android windowing code (from mbrubeck:glut-loop); r=pcwalton
This begins porting the Android event loop to work with the inverted flow control from #3761.  Unfortunately, GLUT does not give us enough control over the event loop to really make this work, so this will build but it may not run properly.  Our current plan is to get rid of GLUT and switch to Glutin in the near future.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 25e9830938d012f6cf0b98780d3034ea03f82078
2014-11-07 22:06:29 -07:00
Ms2ger
f9c1183651 servo: Merge #3937 - Add missing documentation for bindings code (from Ms2ger:docs-bindings); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: fe11a75f794db47a66426456e1e904cf107cc41d
2014-11-07 10:57:30 -07:00
Tom Schuster
5efd3b3693 servo: Merge #3935 - Implement the whole Attr interface (from evilpie:master); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: c311ceea8c875df074b1dc6386a3430c01c48e5c
2014-11-07 07:30:31 -07:00
Fabrice Desré
865ba9b759 servo: Merge #3930 - Issue #3804 : Allow enabling debug-mozjs from servobuild config (from fabricedesre:issue3804); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 23b75816a2fafe9004c2def038f0c0fe774cc1a8
2014-11-07 01:24:28 -07:00
Josh Matthews
83e2e14c53 servo: Merge #3929 - Make content tests synchronous by default. Fixes #884 (from jdm:finish); r=larsbergstrom
Source-Repo: https://github.com/servo/servo
Source-Revision: bb7621f5dc33dd5068a3a4de7cdfe3af8b3d4130
2014-11-06 22:51:29 -07:00
Mukilan Thiyagarajan
467520dfc0 servo: Merge #3917 - XHR - Trigger readystatechange when transitioning from HEADERS_RECEIVED to DONE (from mukilan:xhr-status-async); r=jdm
Fixes #3877

Source-Repo: https://github.com/servo/servo
Source-Revision: 338a9c3f054db0244185c3d85b47e427b6070e37
2014-11-06 19:00:29 -07:00
Glenn Watson
59a187f44d servo: Merge #3886 - Make media queries work with resize and page zoom (from glennw:mq); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: f775f12fe996718af94951c3c2457d896a213d96
2014-11-06 17:24:28 -07:00
Glenn Watson
baab1dcc7f servo: Merge #3922 - Update cargo to get fix for pinned dependencies of features (from glennw:update-cargo); r=mbrubeck
Source-Repo: https://github.com/servo/servo
Source-Revision: fa7596015addedc4db50ce735100d7560482011d
2014-11-06 15:36:29 -07:00
Bruno de Oliveira Abinader
4e10132f16 servo: Merge #3884 - Implement DOMStringMap (from brunoabinader:dataset); r=jdm
This is a sub-task for #2974.

Source-Repo: https://github.com/servo/servo
Source-Revision: 46154fb7ace37e438bddb80bf1e12f4d1f0e00a1
2014-11-06 12:36:30 -07:00
Tom Schuster
8f14a6073c servo: Merge #3892 - Support Back and forward button on mouses (from evilpie:master); r=glennw
I am not sure if this is the same key everywhere, but this works on Linux. Google didn't produce useful results for me.

Source-Repo: https://github.com/servo/servo
Source-Revision: e781cb4d0c49905d250a4f1a91dcc09b4d3927c4
2014-11-06 12:03:32 -07:00
nkdalmia
40995fc3f7 servo: Merge #3817 - M1450: Initial Step for Implement Window.sessionStorage and Window.localStorage (from nkdalmia:master); r=jdm
We have completed the initial step for "Implement Window.sessionStorage and Window.localStorage"
- Create and stub the Storage WebIDL interface

Source-Repo: https://github.com/servo/servo
Source-Revision: c828e8360416e61deaaf6870ebdf9ee2f0abc19b
2014-11-06 10:51:40 -07:00
Patrick Walton
b12f87d947 servo: Merge #3696 - layout: Implement a subset of CSS linear gradients per the CSS-IMAGES specification (from pcwalton:gradients); r=SimonSapin
This implements a subset of the CSS `linear-gradient` property per the
CSS-IMAGES specification:

    http://dev.w3.org/csswg/css-images-3/

The full syntax is parsed, but only the beginning and end color stops
are used, and gradients are clamped to the nearest 90 degrees. It should
not be architecturally difficult to add the remaining pieces, but in the
interests of bounding the size of this patch that work has been left to
follow-ups.

Improves GitHub.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: ed22c9b35b64ccf7a68ed4f26b1eecfa39996efd
2014-11-06 10:00:42 -07:00
Ms2ger
1e58536d48 servo: Merge #3914 - Implement HTMLElement#lang (from Ms2ger:lang); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: 1225189a4bc46b2468b8a95f138b1d733b193093
2014-11-06 09:27:33 -07:00
Ms2ger
d3215f62d3 servo: Merge #3912 - Remove the glob import from the HTML parser (from Ms2ger:parser-glob); r=jdm
Glob imports are frowned upon, and after the removal of
build_element_for_tag, only a few types are actually used.

Source-Repo: https://github.com/servo/servo
Source-Revision: 44fa9f9b18a042e50367b1580528fc94587f0a15
2014-11-06 06:27:31 -07:00
Simon Sapin
d30e1458c4 servo: Merge #3909 - Remove scripts that used to run on Travis-CI (from SimonSapin:remove-travis-files); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 667b511ae3c885deb544afd1bcd80c0ca4669858
2014-11-05 21:15:33 -07:00
Philip Munksgaard
512e0ae988 servo: Merge #3907 - Add serve-docs command to mach (from Munksgaard:serve-docs); r=jdm
This enables the user to run `./mach serve-docs` (with an optional port
number), starting a local web server that hosts the documentation for
Servo and Rust.

This closes #3807

Source-Repo: https://github.com/servo/servo
Source-Revision: 0e6a67c76b9dd862baae5ee5d3b729d3d573dd82
2014-11-05 20:39:33 -07:00
Manish Goregaokar
b52e311bec servo: Merge #3903 - Improve docs and #[must_root] checking in plugins crate (from Manishearth:plugin-fixes); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 57cb8a10f0f6ed445ed7ba88a3fa19d56bd7015e
2014-11-05 20:03:34 -07:00
Ms2ger
3262573f7c servo: Merge #3905 - Pay attention to the prefix in create_element when creating a non-HTML element (from Ms2ger:prefix-create); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 45262ec9d212088f2bafa95981099d25eaac77bb
2014-11-05 19:27:35 -07:00
Matt Brubeck
d507294551 servo: Merge #3902 - Download Rust and Cargo to shared directory (from mbrubeck:share_directory); r=jdm
This is @acmiyaguchi's already-reviewed patch from #3388, rebased and squashed onto servo master. Fixes #3353.

Source-Repo: https://github.com/servo/servo
Source-Revision: 5dae1de2f5226527862a39608f0d7ad217c33b31
2014-11-05 18:51:36 -07:00
Orvar Segerström
c5ee77eabf servo: Merge #3894 - Panic when bootstrap downloads fail (from awestroke:feauture-warn-32bit-bootstrap); r=jdm
Also hints that 32bit snapshots are unavailable on failure

Resolves #3739

![screenshot from 2014-11-05 13 42 39](https://cloud.githubusercontent.com/assets/1098408/4917781/6edc0dd2-64e9-11e4-98bd-dbd1829ee913.png)

Source-Repo: https://github.com/servo/servo
Source-Revision: 10072c73fd70a241dfa7280b0de1bb7b908de3f3
2014-11-05 15:42:51 -07:00
Ms2ger
6e6d91192c servo: Merge #3901 - Implement HTMLElement.title (from Ms2ger:title); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c9857d49ddc80196bed1267946f37dcb8ef4807d
2014-11-05 14:33:36 -07:00
Ms2ger
c4c3870215 servo: Merge #3898 - Pass the correct argument to Element::create when cloning (from Ms2ger:prefix-clone); r=jdm
The current code calls as_slice() on the Option, yielding &[DOMString], and
then calls to_string, yielding "[prefix]".

Source-Repo: https://github.com/servo/servo
Source-Revision: 76cc006a40d7242e64c6c12f033127c569914e31
2014-11-05 12:57:37 -07:00
Keegan McAllister
989e60d8c9 servo: Merge #3900 - Only print HTML parse errors with RUST_LOG=script::parse (from kmcallister:parse-error); r=Ms2ger
r? @ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 390e1115375fc887912961baff0ad626e7192cf8
2014-11-05 12:21:42 -07:00
Ms2ger
219d024c5d servo: Merge #3897 - Re-enable reflection-forms.html and make it not crash (from Ms2ger:enable-reflection); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: fba6cb9c429d5f27a1f7520bf2c35b58b0a8f250
2014-11-05 11:12:40 -07:00
Ms2ger
b34ddd1c74 servo: Merge #3896 - Defer to GetAttribute in HasAttribute (from Ms2ger:attr-crash); r=jdm
The semantics of has_attribute aren't anywhere close to the ones expected for
Element#hasAttribute, and it fails an assertion when passed non-lower-case
names.

Source-Repo: https://github.com/servo/servo
Source-Revision: b27ec2b2231313055232bf9a55343d581e6ead98
2014-11-05 10:36:38 -07:00
Patrick Walton
669bb9792d servo: Merge #3890 - gfx: Micro-optimize DList and StackingContext a bit (from pcwalton:microoptimize-dlist); r=glennw
I'm sad to say that this improved performance significantly. A lot of
this win is due to the Rust compiler not being smart about not zeroing
objects out if it doesn't need to.

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 5e71087ae96a4dcff7f09ab2b9b56df9f3eba595
2014-11-05 10:00:54 -07:00
Patrick Walton
35e2f9710a servo: Merge #3761 - Invert control flow, fix resizing, and improve checkerboarding significantly (from pcwalton:smooth-scrolling); r=larsbergstrom
r? @glennw @mbrubeck

Source-Repo: https://github.com/servo/servo
Source-Revision: ffae1104989c0177b483d591a482e5cd877183c2
2014-11-04 18:12:32 -07:00
Martin Robinson
65b0281012 servo: Merge #3879 - Corral debug command-line options into a --debug/-Z flag (from mrobinson:debug-options); r=cgaebel
This should make help output a lot cleaner and simplify the way that
uncommon debug options are passed.

Source-Repo: https://github.com/servo/servo
Source-Revision: e483a189a3c24d0fe475cf2a8dedb11821f7ee21
2014-11-04 11:36:30 -07:00
Mukilan Thiyagarajan
bd6bcb98f1 servo: Merge #3732 - Fix race condition in XHR and handle other abort/open scenarios (from mukilan:xhr-issue-3630); r=jdm
This fixes issue #3630
A short summary of the changes:
* Use atomic generation id to cancel inflight requests
* Handles nested calls to abort, open, send inside handlers
* Adds XHRReleaseMsg to delay freeing XHR object till all
  inflight events are processed
* Handles both timeout, errors and abort/open in a symmetric fashion
  i.e All inflight events will be cancelled for timeouts, aborts,
    errors and on calling open.
* Change the ErroredMsg enum to be more symmetric with the returned
  Error enum

I noticed a few possible changes that could make the code for fetch task simpler:
* We can remove the additional timer task and let the fetch task manage
  its own timer (or maybe the resource loader can do this.)
* The CORS related steps could also be moved into the resource loader.
* Right now upload events are not support. This requires some support
  from resource loader.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4e24e4d8e92528a5a6f7bb571c6557b5bca11ea9
2014-11-04 05:06:34 -07:00
Bruno de Oliveira Abinader
c4692588de servo: Merge #3881 - Various fixes to CodegenRust.py (from brunoabinader:dataset); r=jdm
Rust doesn't handle integers as bool on if statements, and defineProperty signature uses *mut instead of *const.

Source-Repo: https://github.com/servo/servo
Source-Revision: c4cfb4aae0491ca8016d3cbae9a39a6488b24739
2014-11-03 19:15:32 -07:00
Clark Gaebel
50399f7841 servo: Merge #3880 - Implements case insensitive font family names (from cgaebel:case-insensitive-font-family-matching); r=glennw,glennw
One part (of 8!) of css font family disambiguation is that font families should
be matched case-insensitively.

This patch implements that. Once it lands, a bug needs to be filed to do lowercasing
properly (as a string, instead of char-by-char -- it's a unicode thing).

r? @glennw

Source-Repo: https://github.com/servo/servo
Source-Revision: 2a88a3242cf85c807875883aeb14d113a1a27212
2014-11-03 18:30:35 -07:00
Cameron Zwarich
78d3a818e9 servo: Merge #3878 - Remove InputFragment (from zwarich:remove-input-fragment); r=jdm
Fixes #3724.

Source-Repo: https://github.com/servo/servo
Source-Revision: 39960f32e49c69977b185f91e587c9947b0b9a25
2014-11-03 16:54:31 -07:00
Patrick Walton
0856071fc3 servo: Merge #3835 - script: Implement various microoptimizations (from pcwalton:script-microoptzns); r=Ms2ger
This is a grab bag of various microoptimizations for script that I came across when profiling our performance on RoboHornet.

r? @jdm

Source-Repo: https://github.com/servo/servo
Source-Revision: 69f8b46f362a828ffaefe9623355bc1ad76dc5e0
2014-11-03 15:48:34 -07:00