Граф коммитов

1933 Коммитов

Автор SHA1 Сообщение Дата
Guro Bokum c8c8024c22 servo: Merge #2390 - Convert as many of Page's RefCell fields to Cell as possible (fixes #1990) (from Ms2ger:1990-Page-RefCell); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: d985b6d7c233ba55175f66545bb79efbca741676
2014-05-09 18:01:16 -04:00
Glenn Watson 31a06e7b2a servo: Merge #2387 - Remove unneeded code now that image libraries use Vec<T> (from glennw:image-fixups); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: eb67f69b2daff29ffc6b8e962114e47eaac0d270
2014-05-09 16:31:24 -04:00
Manish Goregaokar a5ae316ba0 servo: Merge #2357 - Basic synchronous GET with XHR (from Manishearth:xhr-syncget); r=ms2ger
This gets a basic synchronous GET request working. I've also tried to implement a portion of the procedures mentioned in the spec.


Blocks #2282

Source-Repo: https://github.com/servo/servo
Source-Revision: 14776522952df9990685e20151e74f4fed8742c9
2014-05-09 11:34:07 -04:00
Ms2ger 5e2e3c3c06 servo: Merge #2381 - Move debug functions to Window IDL (from Ms2ger:mozjs-spring-cleanup); r=jdm
This is a cleaner way to expose those functions, and makes it possible to
remove a significant amount code in rust-mozjs.

The assert() function is no longer exposed, as it was unused and not very
useful.

Source-Repo: https://github.com/servo/servo
Source-Revision: 78917f4e0f15c7e0dad3c9a1fc07c005bd090487
2014-05-09 10:28:10 -04:00
Simon Sapin e84fc9c04b servo: Merge #2345 - Parse and cascade declarations in reverse order (from SimonSapin:reverse-declarations); r=pcwalton
… and deal with properties whose initial value can be affected at computed-value time.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 9bca8a706e3187c6f7c154c59921f80c18249a52
2014-05-09 09:40:15 -04:00
Glenn Watson b1b534f0d1 servo: Merge #2378 - Change image library use of ~[T] -> Vec[T]. Update rust-stb and rust-png (from glennw:png-update); r=larsbergstrom
... submodule pointers.

Source-Repo: https://github.com/servo/servo
Source-Revision: 146eccdf80cbc37a30d2812bd848ff4e703a911b
2014-05-09 08:37:10 -04:00
aydin.kim 15348adae1 servo: Merge #2377 - Fix hidpi parameter of android (from aydinkim:hidpi); r=larsbergstrom
Fix for android rendering.
Need to consider about getting accurate size framebuffer & window parameter respectively from android stack and follow up the stuffs on another platform.

Source-Repo: https://github.com/servo/servo
Source-Revision: 052d3cb0835470da281669b8dce1c9c51e8e7b9e
2014-05-08 23:31:15 -04:00
aydin.kim 7e9d46c1fa servo: Merge #2376 - update android guide in README.md (from aydinkim:readme); r=larsbergstrom
Android build guide in README.md is out-dated.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4fb36cd0bea35e6bc8a6b5b9cc6648efd72f08ec
2014-05-08 22:55:10 -04:00
Martin Robinson df63571571 servo: Merge #2372 - Use == instead of match for tests against a single enum value (from mrobinson:issue-1596); r=metajack
The performance of using == should now equal that of match, so many
identity methods can be simplified to a single line.

Fixes #1596.

Source-Repo: https://github.com/servo/servo
Source-Revision: 78a768ae5c39e1a2f2a666fc574a0332bf1ca28e
2014-05-08 20:16:21 -04:00
Cameron Zwarich 046d1d6c73 servo: Merge #2375 - Rename an unused parameter to silence a warning (from zwarich:progressevent-rename); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: a28665d3fd63a854d1808b19ae8267dec0f64e6c
2014-05-08 19:40:16 -04:00
Cameron Zwarich 2117ef4b83 servo: Merge #2373 - Remove an unused field from CodegenRust.py (from zwarich:remove-default-visibility); r=Ms2ger
The defaultVisibility field was cloned from the C++ implementation,
where it tracks the difference between struct and class visibility.
Since no similar concept exists in Rust, it should be removed.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6d381959db18acc5c2f0c1891df8afe5df8372cb
2014-05-08 17:46:15 -04:00
Cameron Zwarich 8c3de38943 servo: Merge #2371 - Suppress dead code warnings for start when building servo.rs as a dylib (from zwarich:start-dead-code); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: f94ad73396b25bf4c3fbf5d7c46d084e1b767901
2014-05-08 15:01:30 -04:00
Glenn Watson ae3148f37a servo: Merge #2369 - Fix for parallel data race in layout code. Fixes #2308 (from glennw:issue-2308); r=metajack
There might be a "cleaner" rust way to separate the scope and invoke the drop() call?

Source-Repo: https://github.com/servo/servo
Source-Revision: bfffbe94eacb63fe7fe3fc2cfed433cb20cd4c41
2014-05-08 12:16:12 -04:00
Manish Goregaokar 0d95fe5493 servo: Merge #2361 - Add ProgressEvent interface (from Manishearth:progressevent); r=jdm
Adds the ProgressEvent webidl and implementation according to the XHR spec.

Blocks #2282

Source-Repo: https://github.com/servo/servo
Source-Revision: a0922f9d7274e0781f30cdacf978104c224010f7
2014-05-08 11:46:16 -04:00
Glenn Watson ee6e48cac5 servo: Merge #2355 - Allow resource load failures to send an error string which is reporting (from glennw:http-fail-errors); r=jdm
...during task failure.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0a647baacb6eeb6d96dd3e0e2c6eb1e2f2b7f2e5
2014-05-08 11:16:41 -04:00
Cameron Zwarich 2013ef04bd servo: Merge #2368 - Remove the name of an unused parameter that triggers a warning (from zwarich:net-unused-param); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 6cbcd98132389c7914c232ea8c25365a96df49d5
2014-05-08 00:46:22 -04:00
aydin.kim 44df3fb486 servo: Merge #2367 - fix android build (from aydinkim:PR); r=larsbergstrom
With Rust syntax changing..

Source-Repo: https://github.com/servo/servo
Source-Revision: d2d109578496a1d508062fc05381e3a17246036f
2014-05-07 22:07:17 -04:00
Gulshan Singh 88bdd19cd9 servo: Merge #2346 - Add Performance object to Window and implement Performance::Now() (from gsingh93:master); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 86a6de209ef6d5beeb19661bd48ff4f5c87e9b4a
2014-05-07 18:58:18 -04:00
Brendan Zabarauskas 711b04311c servo: Merge #2365 - Make range generic over signed integers (from brendanzab:generic-range); r=pcwalton
Signed integers allow for generic +ve/-ve offsets.

r? @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: 8e0febb1091fa601f4caff9a2ce2f4e58944f6c3
2014-05-07 18:10:22 -04:00
Cameron Zwarich f4b880bbe7 servo: Merge #2364 - Open a background non-focus-stealing window for tests on OS X (from zwarich:issue-2363); r=larsbergstrom
Use false for the glfw::Visible window hint to open a background window
on OS X. This requires an upgrade to glfw 3.0.4 in order for this to
also not steal focus.

This requires adding a new parameter to WindowMethods<A>::new.

Fixes https://github.com/mozilla/servo/issues/2363. r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 2a7889c061852b7d63782176cb35bfbc55c98f3f
2014-05-07 17:34:33 -04:00
Ms2ger d2b40d13ed servo: Merge #2360 - Replace some ~[T] by Vec<T> (from Ms2ger:vec); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 15d3257a29125103e368787f7e9790ee4314b29f
2014-05-07 09:28:27 -04:00
Cameron Zwarich 12637a4487 servo: Merge #2358 - Make configure recognize the '-h' option in addition to '--help' (from zwarich:configure-dash-h); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 5300846f331d8706dfbdcf0a23a6b3e412df5ca3
2014-05-07 05:29:11 -04:00
Glenn Watson 4cc79f8a27 servo: Merge #2339 - Modify node traversal loop to avoid JS roots assertion. Fixes #2321 (from glennw:js-event-assert); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e9ac0d1e2cab62cbef2b23bd7ba93374b52f4c02
2014-05-07 03:04:21 -04:00
Glenn Watson 70403ec7f8 servo: Merge #2356 - Fix a few mutability warnings (from glennw:warnings); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c872764a7c6e9d8d08566ce0ac4c044c28f8dad8
2014-05-07 01:16:22 -04:00
Glenn Watson b85da72874 servo: Merge #2340 - Fix JS roots assertion when clicking on an element (from glennw:js-click-assert); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: dc49e7d1a021f0b1513492a9f01febae66796712
2014-05-07 00:46:21 -04:00
Brendan Zabarauskas a85a083b31 servo: Merge #2336 - Use fmt::Show for outputting debug information (from brendanzab:debug_str); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: 38bf7fd0982a71151630753982af36badd9c7c24
2014-05-06 23:37:35 -04:00
Glenn Watson 4264c9043a servo: Merge #2354 - Rename from_unrooted to from_temporary. Fixes #2332 (from glennw:issue-2332); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 27bdc580ed5dab7e81a0b49060c01b32cad555cb
2014-05-06 21:31:27 -04:00
Cameron Zwarich 9d1245fa71 servo: Merge #2350 - Remove an unused import of std::str (from zwarich:unused-str-import); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: e6e253b11d63d96b45aa1e9c7218238c9fc4b6d8
2014-05-06 20:31:31 -04:00
Manish Goregaokar c42677f9a3 servo: Merge #2304 - Remove dead code (from Manishearth:deadcode); r=metajack
The code was added as a debugging method [here](5663ca1eef), it's no longer used

Source-Repo: https://github.com/servo/servo
Source-Revision: 22c60609210e625cab4aa5b533e7b32d902df18f
2014-05-06 19:21:22 -04:00
Cameron Zwarich 23928990b9 servo: Merge #2349 - Print the location of the image diff when a ref test fails (from zwarich:reftest-print-diff); r=larsbergstrom
Having to match the numbered results in /tmp with the failing tests was bothering me, and I figured it would be better to print the path with the failure.

Source-Repo: https://github.com/servo/servo
Source-Revision: 0bb838a58b80dfbf63d09342e15d0af45277d073
2014-05-06 18:13:35 -04:00
Ms2ger 51cf935e78 servo: Merge #2347 - Replace some ~[T] by Vec<T> (from Ms2ger:vec); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c013d2a211e94e24dbc01c3a98e56b87dd237f14
2014-05-06 17:19:25 -04:00
Josh Matthews eba6928518 servo: Merge #2344 - Force a GC when shutting down each layout task. Fixes #2342 (from jdm:iframefail); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 03e0f911ec5ba005881cd4b1cc121b66648e51d6
2014-05-06 12:58:18 -04:00
Manish Goregaokar 480338c2e8 servo: Merge #2341 - Split parse_url to allow for external error handling (from Manishearth:error-parse); r=jdm
Sometimes it's useful to bubble out the error from the URL parsing so the caller can deal with the result as per its needs.

[The XHR `open()`](http://xhr.spec.whatwg.org/#the-open()-method), for example, is one place where the bubbling out of an error is required.

Blocks #2282

Source-Repo: https://github.com/servo/servo
Source-Revision: 1879bf95ee40c74bf78164f10817d726a7c4c6b9
2014-05-06 12:25:24 -04:00
Ms2ger 6f7d93c89e servo: Merge #2343 - Add support for DOMString in unions (fixes #2324) (from Ms2ger:String-union); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8d1b9db5aa7d8271b9dabfcc2b0311964ecf11a3
2014-05-06 10:25:23 -04:00
Ms2ger 37492638e4 servo: Merge #2331 - Use a single JSContext per JSRuntime (from Ms2ger:global-cx-3); r=jdm
The long-term plan for SpiderMonkey is to eliminate JSContexts by merging
(most of) it into JSRuntime, so to future-proof our code, we should avoid
creating multiple JSContexts for the same JSRuntime.

However, this implies we'll have to use the same JSContext for objects in
different compartments, so we need to enter compartments. This is done by
using the with_compartment function.

Source-Repo: https://github.com/servo/servo
Source-Revision: d66197ae406e252c51bda48611ddfce78ecedb02
2014-05-06 09:58:33 -04:00
Brendan Zabarauskas 441665b657 servo: Merge #2338 - Remove unused teardown methods (from brendanzab:remove-teardown); r=pcwalton
According to @pcwalton these used to be important for memory safety but are no longer needed now.

Source-Repo: https://github.com/servo/servo
Source-Revision: dedaa6a98e6455f13af8afee70be40654dcd008e
2014-05-05 21:34:19 -04:00
Brendan Zabarauskas d9a801e2dc servo: Merge #2337 - Replace most of the SmallVec0 usages with std::vec::Vec (from brendanzab:smallvec); r=pcwalton
We can't replace the ones in the `style` crate because some functions expect generic `SmallVec`s.

I also did some reorganisation of the `smallvec` macros.

cc @pcwalton

Source-Repo: https://github.com/servo/servo
Source-Revision: b6c785692645b22c8b6119cb28109e85e703e430
2014-05-05 21:01:24 -04:00
Ms2ger 3e4cec4ec3 servo: Merge #2325 - Use default methods to reduce code duplication for TestBinding (from Ms2ger:testbinding-default); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b14b2eca372ea91dc40af66b1f8a9cd510c37abf
2014-05-05 15:58:10 -04:00
Ms2ger 24d211ff8e servo: Merge #2322 - Replace some ~[T] by Vec<T> (from Ms2ger:vec); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: deacda7d225e0b57ec3b7fcebd741c185c111cec
2014-05-05 15:22:13 -04:00
Harry Maclean be6b296acf servo: Merge #2326 - Implement ChildNode.remove() (from jdm:remove); r=Ms2ger
Fixes #2191.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2da560e9ee29160e49c2af922202a344d7ed355f
2014-05-05 14:07:29 -04:00
Ms2ger 97440b2ff7 servo: Merge #2296 - Update rust-opengles (from Ms2ger:update-opengles)
Source-Repo: https://github.com/servo/servo
Source-Revision: bba4bef106eb69ef3d4e03e303faa491f7849ebe
2014-05-05 10:13:42 -04:00
Ms2ger 9263d78f5f servo: Merge #2299 - Cleanup getJSToNativeConversionTemplate (from Ms2ger:getJSToNativeConversionTemplate-cleanup); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: f642d5951a562570cbef052c03463ef5da2777be
2014-05-05 09:43:18 -04:00
Manish Goregaokar f7bf139ec7 servo: Merge #2323 - Fix some unused_mut/unused_result warnings (from Manishearth:warnings); r=Ms2ger
The `.encode()`s from where the unused_result warnings come from seem to wrap an `encode()` and return `Ok(())`.

They should probably bubble the result out.

Source-Repo: https://github.com/servo/servo
Source-Revision: edb1547502012c2145ce1411dc923720134bb8f1
2014-05-05 06:19:21 -04:00
Glenn Watson 1e040c311c servo: Merge #2320 - Prevent unused result warning in codegen. Always expect success for now (from glennw:codegen-warnings); r=jdm
Is it reasonable to always expect success here for now?

Fixes #2246.

Source-Repo: https://github.com/servo/servo
Source-Revision: 310d2a19bbc1b8933f05cbd77c79df155ac00d94
2014-05-05 01:22:17 -04:00
Ms2ger 03eea17bbc servo: Merge #2316 - Use str.to_owned() in tests (from Ms2ger:owned-str-tests); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 150de252de48c80d294864a9492b517a7eb90eb3
2014-05-05 00:52:21 -04:00
Matt Murphy 4bbc965d43 servo: Merge #2317 - Convert ~[] to Vec (from Ms2ger:rebased-vec); r=Ms2ger
#2271 rebased.

Source-Repo: https://github.com/servo/servo
Source-Revision: 67c9883d9aceb3a3f6395938629c38fc176e62ab
2014-05-04 17:25:39 -04:00
Ms2ger 6b4df23ee7 servo: Merge #2312 - Remove most ~"string"s (from Ms2ger:owned-strings); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: b1d0dac50d30506f85c7711437eb4957ee59cc0b
2014-05-04 06:22:21 -04:00
Ms2ger dc0ab9de13 servo: Merge #2311 - Replace all ~"" with "".to_owned() (from Ms2ger:empty-owned); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 660f7a016ee75a418afda9e92d45b79eff6ba540
2014-05-04 01:01:21 -04:00
Josh Matthews 0c3a130356 servo: Merge #2101 - Implement a safe, mostly-sound rooting rooting strategy (from jdm:newroot_rebase); r=Ms2ger
As described in #1764, this strategy uses the following properties:
* DOM members are `JS<T>` types. These cannot be used with being explicitly rooted, but they are required for compiler-derived trace hooks.
* Methods that take DOM type arguments receive `&[mut] JSRef<T>`. These are rooted value references that are cloneable but cannot escape.
* Methods that return DOM values use `Unrooted<T>`. These are values that may or may not be rooted elsewhere, but callers must root them in order to interact with them in any way. One unsoundness hole exists - `Unrooted` values must be rooted ASAP, or there exists the danger that JSAPI calls could be made that could cause the underlying JS value to be GCed.
* All methods are implemented on `JSRef<T>`, enforcing the requirement that all DOM values are rooted for the duration of a method call (with a few exceptions for layout-related code, which cannot root values and therefore interacts with `JS<T>` and `&T` values - this is safe under the assumption that layout code interacts with DOM nodes that are in the tree, therefore rooted, and does not run concurrently with content code)

Source-Repo: https://github.com/servo/servo
Source-Revision: 731e66ff132e41cdc49bc5324c0e15be19c46ec2
2014-05-03 14:25:22 -04:00
Manish Goregaokar 66fa0e7e66 servo: Merge #2302 - Use new attribute syntax (from Manishearth:attr); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 4051a8096d7ba7e7f9c86e76d0b4bffd83e85805
2014-05-03 12:31:25 -04:00