Commit graph

9200 commits

Author SHA1 Message Date
Ms2ger
6b69fec7fe Fix warnings in script. 2015-03-23 10:37:49 +01:00
bors-servo
1f682d878d auto merge of #5281 : glennw/servo/mozbrowser, r=jdm 2015-03-22 21:36:51 -06:00
Glenn Watson
bf9b8f7050 Experimental implementation of (a small subset of) mozbrowser APIs. 2015-03-23 13:26:55 +10:00
bors-servo
dfb8929b00 auto merge of #5316 : frewsxcv/servo/no-format-abuse, r=jdm
In these cases for `format!`, we're just constructing a String of the
single argument with no special format.
2015-03-22 19:30:51 -06:00
Corey Farwell
5a780cb221 Stop abusing format! macro when construct a String
In these cases for `format!`, we're just constructing a String of the
single argument with no special format.
2015-03-22 18:54:56 -04:00
bors-servo
445f1c891a auto merge of #5307 : frewsxcv/servo/document-set-body, r=jdm
There were a few things that were bothering me with `SetBody`:

* The 'Step 3' comment is in the wrong place
* The logic of 'Step 4' comes before 'Step 3'
* 'Step 5' was not documented
2015-03-22 10:09:46 -06:00
bors-servo
aeaf1ea583 auto merge of #5308 : Ms2ger/servo/main-spawn, r=jdm 2015-03-22 09:18:47 -06:00
bors-servo
72e2c79a08 auto merge of #5298 : Manishearth/servo/userscript, r=saneyuki
Gives us a place to store polyfills and other userscripts so that we can:

 - Quickly determine what DOM features are needed to make stuff like jQuery work by iteratively writing stub implementations
 - Write spec-incompatible but "good enough" polyfills for stuff like jQuery to make Servo more testable on live sites, for demos, and for browser.html


r? @jdm

cc @eddyb
2015-03-22 08:27:48 -06:00
Manish Goregaokar
596e03e546 Basic userscript support 2015-03-22 15:13:11 +05:30
Corey Farwell
5e4d80fa3a Tidy up script::dom::document.SetBody
There were a few things that were bothering me with `SetBody`:

* The 'Step 3' comment is in the wrong place
* The logic of 'Step 4' comes before 'Step 3'
* 'Step 5' was not documented
2015-03-21 20:21:36 -04:00
Ms2ger
833e0a399b Remove the unneccesary thread being spawned in Browser::new. 2015-03-21 23:28:33 +01:00
bors-servo
87af57cefc auto merge of #5301 : Ms2ger/servo/reftests, r=jdm 2015-03-21 13:42:45 -06:00
bors-servo
43f3f6c897 auto merge of #5303 : Ms2ger/servo/core, r=jdm 2015-03-21 12:57:46 -06:00
Ms2ger
ba87666cdb Update some code that's feature-gated under core. 2015-03-21 18:44:39 +01:00
Ms2ger
8dcded5f4d Remove the core feature from reftests. 2015-03-21 14:31:19 +01:00
Ms2ger
061d0c94ec Move to new path and io APIs in reftest.rs. 2015-03-21 14:31:19 +01:00
Ms2ger
2fde574b39 Pass path strings to {load,store}_png directly.
This has been made possible by using the AsPath trait upstream.
2015-03-21 14:31:19 +01:00
Ms2ger
561f7e594e Update rust-png. 2015-03-21 14:31:14 +01:00
bors-servo
29a36adbe7 auto merge of #5296 : servo/servo/unsafe_code, r=Ms2ger 2015-03-21 05:12:45 -06:00
Manish Goregaokar
3479d3fa7f Replace unsafe_blocks by unsafe_code. 2015-03-21 10:27:32 +01:00
bors-servo
ec60f29203 auto merge of #5297 : Ms2ger/servo/fs, r=SimonSapin 2015-03-20 17:00:44 -06:00
Ms2ger
32d1e31c90 Replace most usage of std::old_io::File. 2015-03-20 23:47:29 +01:00
bors-servo
075f667ce7 auto merge of #5259 : frewsxcv/servo/constellation-cleanup, r=glennw
I messed up #5255
2015-03-20 15:57:45 -06:00
bors-servo
4eb26065ac auto merge of #5293 : Ms2ger/servo/global_init, r=jdm 2015-03-20 15:00:49 -06:00
Corey Farwell
9101fa621a Minor cleanup in compositing/constellation
* No need to explicitly state .iter()
* Simplify NavigationDirection match branches
* Utilize Vec.map instead of match
* Clean up a couple imports
2015-03-20 16:15:24 -04:00
Ms2ger
2cde68f13f Cleanup resource_task's global_init(). 2015-03-20 21:07:16 +01:00
bors-servo
aa6ed369b8 auto merge of #5261 : pcwalton/servo/too-many-reflows, r=pcwalton,metajack
These help Facebook Timeline a lot.

r? @metajack
2015-03-20 11:51:47 -06:00
Patrick Walton
2c22467d53 script: Stop rebuilding every flow in the document when an image
finishes loading.
2015-03-20 10:09:52 -07:00
Patrick Walton
fda3791487 util: Turn on ndebug in release mode, and fix task-state to not crash
when `ndebug` is on.
2015-03-20 10:09:52 -07:00
bors-servo
0663cd6325 auto merge of #5288 : Ms2ger/servo/warnings, r=SimonSapin 2015-03-20 11:00:54 -06:00
Ms2ger
1604515fd9 Fix various build warnings. 2015-03-20 17:57:49 +01:00
bors-servo
717805a593 auto merge of #5289 : Ms2ger/servo/android-redirect, r=metajack
It will panic if there are any null bytes in read_buffer, but fgets
guarantees that there is a null-terminator.
2015-03-20 09:57:54 -06:00
bors-servo
6ffd459479 auto merge of #5287 : Ms2ger/servo/gates, r=jdm
CC #5286.
2015-03-20 09:12:51 -06:00
Ms2ger
acafcacfdc Stop using CString::from_slice in redirect_output.
It will panic if there are any null bytes in read_buffer, but fgets
guarantees that there is a null-terminator.
2015-03-20 15:49:57 +01:00
bors-servo
8998edb912 auto merge of #5282 : gfxmonk/servo/finalize_global, r=Ms2ger
Fixes #1871

I thought I'd take a look at this for a first contribution to servo. A couple of things I'm not 100% sure on are:

1) `get_proto_or_iface_array` returns a `*mut *mut JSObj`, which I'm assuming is really an array of pointers to `JSObj`s. So dropping its return value will drop the memory for the array of pointers. Do we also need to drop each element, or is that handled by GC?

2) Are there any tests I need to add for this? I don't know if there are existing leak tests, or if leaks are mostly discovered by profiling.
2015-03-20 07:54:48 -06:00
Ms2ger
dce11222ba Update some feature gates.
CC #5286.
2015-03-20 13:55:11 +01:00
Tim Cuthbertson
0052a27b1a Free the interface prototype array when Window is finalized
Fixes #1871
2015-03-20 22:14:14 +11:00
bors-servo
2c85c1d312 auto merge of #5251 : mmatyas/servo/canvas_quadratic, r=jdm
Yet another small canvas patch.
2015-03-20 04:27:47 -06:00
bors-servo
dea36f9816 auto merge of #4891 : mmatyas/servo/canvas_gradient, r=jdm
Based on [ebalint](https://github.com/ebalint)'s original patch, this commit implements the linear and radial gradients for the canvas. The PR also includes test cases.
Depends on #4623 and servo/rust-azure#136.
2015-03-20 03:12:47 -06:00
bors-servo
459c354416 auto merge of #4819 : mskrzypkows/servo/document_activeElement, r=jdm
#4770
2015-03-19 22:30:49 -06:00
bors-servo
ab8d43910c auto merge of #5229 : hsvalava/servo/m1503, r=jdm
Fixing ConsoleMsg for console.log messages in the Developer Tools web console.
2015-03-19 21:48:48 -06:00
bors-servo
794d9f696a auto merge of #5280 : mbrubeck/servo/rand, r=larsbergstrom
r? @larsbergstrom
2015-03-19 17:33:48 -06:00
Matt Brubeck
970f275b94 Use the same version of rand everywhere 2015-03-19 16:32:38 -07:00
Maciej Skrzypkowski
7da356cd05 Added document.activeElement attribute. 2015-03-19 23:00:13 +01:00
bors-servo
fef439726a auto merge of #5270 : glennw/servo/hit-test-stacking-context, r=pcwalton 2015-03-19 15:18:53 -06:00
Himaja
3830d8e3e1 Fix ConsoleMsg in ConsoleAPICall for log messages in the Developer Tools web console. 2015-03-19 16:08:27 -04:00
bors-servo
82f70c5d50 auto merge of #5200 : mbrubeck/servo/cache-dir, r=larsbergstrom
This will be set in servo/saltfs to prevent our buildbot builders from re-downloading the build tools for every build.

r? @larsbergstrom or @metajack or @Manishearth
2015-03-19 13:57:52 -06:00
bors-servo
e845695b66 auto merge of #5276 : metajack/servo/fix-idle-loop, r=pcwalton
This fixes 100% CPU usage during idle.
2015-03-19 12:03:52 -06:00
bors-servo
4863eb65e9 auto merge of #5277 : metajack/servo/deque-wrap-fix, r=jdm
This uses wrapping_add, which was always the intended operation.

Fixes #5275.
2015-03-19 09:45:56 -06:00
Jack Moffitt
331c7030d9 Fix overflowed arithmetic.
This uses wrapping_add, which was always the intended operation.

Fixes #5275.
2015-03-19 09:31:40 -06:00