Commit Graph

3540 Commits

Author SHA1 Message Date
Ms2ger
d5ae5a73b2 servo: Merge #5324 - Remove allow(missing_copy_implementations) attributes (from Ms2ger:missing_copy_implementations); r=jdm
This is now the default.

Source-Repo: https://github.com/servo/servo
Source-Revision: b1a35f549baad871a3691ae485af2efecd2d73f7
2015-03-23 08:45:50 -06:00
Corey Farwell
34bf7826c9 servo: Merge #5321 - Add TODO comments for a recently opened issue (from frewsxcv:patch-1); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: ca79abe45871b4bfe8e8162cb39f8b6bacd0b0b6
2015-03-23 07:57:50 -06:00
Ms2ger
a9cd0f12b3 servo: Merge #5323 - Fix warnings in script (from Ms2ger:script-warnings); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: f9826c3ae80a9d859fc067dcceddf3ab105656f6
2015-03-23 06:57:50 -06:00
Corey Farwell
d81e8a7173 servo: Merge #5319 - dom::urlsearchparams cleanup and documentation (from frewsxcv:urlsearchparams); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: ccac6a944e37e2ea99aa933bbabc2e3d896c2f6e
2015-03-23 05:18:50 -06:00
Ms2ger
58cb86389f servo: Merge #5317 - Fix some warnings in the CEF port (from Ms2ger:cef); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 092a6d6f10216470c118e0efbb1ce969ce2864a3
2015-03-23 04:15:50 -06:00
Ms2ger
176d45569b servo: Merge #5314 - Update some feature gates (from Ms2ger:warnings); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4c2ec083e855d52eeb77f25e00190b8beb820742
2015-03-23 03:24:50 -06:00
Glenn Watson
2ee608fe49 servo: Merge #5281 - Experimental implementation of (a small subset of) mozbrowser APIs (from glennw:mozbrowser); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1f682d878db99651bfd26b8a28b57895f2238f87
2015-03-22 21:36:51 -06:00
Corey Farwell
7cb441f853 servo: Merge #5316 - Stop abusing format! macro when construct a String (from frewsxcv:no-format-abuse); r=jdm
In these cases for `format!`, we're just constructing a String of the
single argument with no special format.

Source-Repo: https://github.com/servo/servo
Source-Revision: dfb8929b001c8d0fb6d5e63f5a9d6dcc17cb388a
2015-03-22 19:30:51 -06:00
Corey Farwell
2a6d042d29 servo: Merge #5307 - Tidy up script::dom::document.SetBody (from frewsxcv: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

Source-Repo: https://github.com/servo/servo
Source-Revision: 445f1c891a5536a26b4759ba4b2dab99c31505f4
2015-03-22 10:09:46 -06:00
Ms2ger
6ba4aedea5 servo: Merge #5308 - Remove the unneccesary thread being spawned in Browser::new (from Ms2ger:main-spawn); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: aeaf1ea5833f9de40a0b4e27bc26196014ce1683
2015-03-22 09:18:47 -06:00
Manish Goregaokar
0af6669a72 servo: Merge #5298 - Basic userscript support (from Manishearth: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

Source-Repo: https://github.com/servo/servo
Source-Revision: 72e2c79a089ff6654a36951ce4aedac62006e6a1
2015-03-22 08:27:48 -06:00
Ms2ger
c90dcd40b6 servo: Merge #5301 - Modernize reftest.rs (from Ms2ger:reftests); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 87af57cefc671f445c5b977f2b27d7ca9e70e390
2015-03-21 13:42:45 -06:00
Ms2ger
ed37ff9cb6 servo: Merge #5303 - Update some code that's feature-gated under core (from Ms2ger:core); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 43f3f6c897916aea75773f74060ec84a338834d0
2015-03-21 12:57:46 -06:00
Manish Goregaokar
5dbe6eb389 servo: Merge #5296 - Replace unsafe_blocks by unsafe_code (from servo:unsafe_code); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 29a36adbe7d87fb38ba9bef3a718c6c823fb5977
2015-03-21 05:12:45 -06:00
Ms2ger
75737c51cb servo: Merge #5297 - Replace most usage of std::old_io::File (from Ms2ger:fs); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: ec60f29203c75b46d59253c7cbb4005fce7e4ad4
2015-03-20 17:00:44 -06:00
Corey Farwell
a9e08702bc servo: Merge #5259 - A few Constellation cleanup commits (from frewsxcv:constellation-cleanup); r=glennw
I messed up #5255

Source-Repo: https://github.com/servo/servo
Source-Revision: 075f667ce7fe3d94e9013768449a93ff3155c307
2015-03-20 15:57:45 -06:00
Ms2ger
d08d1bffbd servo: Merge #5293 - Cleanup resource_task's global_init() (from Ms2ger:global_init); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4eb26065acdc37d275e658d8581282cb39b90686
2015-03-20 15:00:49 -06:00
Patrick Walton
3f9d312730 servo: Merge #5261 - Remove debugging info in release mode and stop reflowing on every new image that comes in (from pcwalton:too-many-reflows); r=pcwalton,metajack
These help Facebook Timeline a lot.

r? @metajack

Source-Repo: https://github.com/servo/servo
Source-Revision: aa6ed369b80cbbc81eef9e8697963d0d64358f9b
2015-03-20 11:51:47 -06:00
Ms2ger
01a90574bd servo: Merge #5288 - Fix various build warnings (from Ms2ger:warnings); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 0663cd632517c9a9c86db47456c5a4da637045ed
2015-03-20 11:00:54 -06:00
Ms2ger
c7a10f319e servo: Merge #5289 - Stop using CString::from_slice in redirect_output (from Ms2ger: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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 717805a593b58c69763dcabadff0b4aff182c80b
2015-03-20 09:57:54 -06:00
Ms2ger
ce96136abb servo: Merge #5287 - Update some feature gates (from Ms2ger:gates); r=jdm
CC #5286.

Source-Repo: https://github.com/servo/servo
Source-Revision: 6ffd459479dde59f471eb42ef0515dd964b6a9d9
2015-03-20 09:12:51 -06:00
Tim Cuthbertson
b25ea3bb55 servo: Merge #5282 - Free the interface prototype array when Window is finalized (from timbertson: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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8998edb912b4f6efea7b2ff4e707325d7c03488c
2015-03-20 07:54:48 -06:00
Mátyás Mustoha
6fe3dfb702 servo: Merge #5251 - Canvas: implement quadraticCurveTo() (from mmatyas:canvas_quadratic); r=jdm
Yet another small canvas patch.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2c85c1d312405c586f05244c221b65750cf09981
2015-03-20 04:27:47 -06:00
Mátyás Mustoha
1bf28c3915 servo: Merge #4891 - Implement canvas gradient (from mmatyas: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.

Source-Repo: https://github.com/servo/servo
Source-Revision: dea36f981650f027902b4f71f0cdabd2da69fe21
2015-03-20 03:12:47 -06:00
Maciej Skrzypkowski
22557a07cf servo: Merge #4819 - Added document.activeElement attribute (from mskrzypkows:document_activeElement); r=jdm
#4770

Source-Repo: https://github.com/servo/servo
Source-Revision: 459c35441612d3247450e253b1dcd0bc003985ae
2015-03-19 22:30:49 -06:00
Himaja
3f1f2f164e servo: Merge #5229 - M1503: Extend the developer tools support - Initial steps (from hsvalava:m1503); r=jdm
Fixing ConsoleMsg for console.log messages in the Developer Tools web console.

Source-Repo: https://github.com/servo/servo
Source-Revision: ab8d43910ca2f3e60e3dd1417be80ab53f438b6e
2015-03-19 21:48:48 -06:00
Matt Brubeck
e555e46c85 servo: Merge #5280 - Use the same version of rand everywhere (from mbrubeck:rand); r=larsbergstrom
r? @larsbergstrom

Source-Repo: https://github.com/servo/servo
Source-Revision: 794d9f696a7a1c80afec44badfb151c047239cd7
2015-03-19 17:33:48 -06:00
Glenn Watson
83c49f2b56 servo: Merge #5270 - Fix hit testing with stacking contexts (apparent since transforms landed) (from glennw:hit-test-stacking-context); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: fef439726aea26ef631f414c4852fa4cb49fff15
2015-03-19 15:18:53 -06:00
Matt Brubeck
8386302dc2 servo: Merge #5200 - Add an environment variable to override cache-dir (from mbrubeck: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

Source-Repo: https://github.com/servo/servo
Source-Revision: 82f70c5d501a50d914d69bcd3743d81d5aac69d2
2015-03-19 13:57:52 -06:00
Jack Moffitt
e0618abf79 servo: Merge #5276 - Switch from poll_events to wait_events (from metajack:fix-idle-loop); r=pcwalton
This fixes 100% CPU usage during idle.

Source-Repo: https://github.com/servo/servo
Source-Revision: e845695b6674a8f97f6a172bf575e6c965883ff1
2015-03-19 12:03:52 -06:00
Jack Moffitt
646b243c98 servo: Merge #5277 - Fix overflowed arithmetic (from metajack:deque-wrap-fix); r=jdm
This uses wrapping_add, which was always the intended operation.

Fixes #5275.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4863eb65e9419d4b89834c7d1ad068eabfa05641
2015-03-19 09:45:56 -06:00
Michael Wu
0870d37be3 servo: Merge #5272 - Fix warnings in gonk port (from michaelwu:fix-gonk-warnings); r=metajack
This fixes a bunch of warnings in the gonk code. Not all of them, but we're only left with three now.

Source-Repo: https://github.com/servo/servo
Source-Revision: 8906d485703a5c975bcd6709c8ad9c25a51e1e8f
2015-03-19 08:48:52 -06:00
Manish Goregaokar
d3058c9407 servo: Merge #5269 - rm unnecessary old_impl_check (from Manishearth:old_impl); r=jdm
Brings us to zero old impls. \o/

Feel free to add this to a larger warning fix PR

Source-Repo: https://github.com/servo/servo
Source-Revision: 34950418ea9929a361cbed376141974cf030ca95
2015-03-18 22:33:47 -06:00
Matt Brubeck
9fbcea3f65 servo: Merge #5268 - Use append instead of extend where possible (from mbrubeck:append); r=jdm
The new `Vec::append` method is clearer and potentially faster.

Source-Repo: https://github.com/servo/servo
Source-Revision: 646f82147946c3221a6de0e575b4750dc61d5610
2015-03-18 21:39:49 -06:00
Adenilson Cavalcanti
cd29e1edc5 servo: Merge #5267 - Squashing a few warnings (from Adenilson:squashWarnings02); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 0b1c2a1798f84f50778bc54bce23e5a606319a4e
2015-03-18 20:54:48 -06:00
Glenn Watson
12665d3168 servo: Merge #5254 - Fixes positioning of inline blocks that generate stacking contexts (from glennw:ib-stacking-context); r=pcwalton
Source-Repo: https://github.com/servo/servo
Source-Revision: e0ead847812ddeb8577f9263bb969d4a17839f19
2015-03-18 19:45:47 -06:00
Chris Paris
9bbe58e675 servo: Merge #5029 - Serialize using html5ever (from ChrisParis:h5e-serialize); r=jdm
Fixes https://github.com/servo/servo/issues/3713. Depends on https://github.com/servo/html5ever/pull/100 and https://github.com/servo/html5ever/pull/101.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1236280bea969cb3e92b27868db418be016c64a5
2015-03-18 18:06:49 -06:00
Chris Paris
0ada5c1569 servo: Merge #4888 - Implement Element.innerHTML setter (from ChrisParis:innerhtml); r=jdm
This addresses #849.  This PR cannot land until the corresponding PR (https://github.com/servo/html5ever/pull/91) in html5ever lands. I've done some simple testing of this code, but I don't consider it thorougly tested yet. I wanted to start getting feedback about the overall design before I spend more time polishing the details, and testing.

Source-Repo: https://github.com/servo/servo
Source-Revision: b2fb06d6e25d6728d6000c283ed1dab1e8bfabb1
2015-03-18 17:12:49 -06:00
Matt Brubeck
60f829a1da servo: Merge #5266 - Rename DList to LinkedList everywhere (from mbrubeck:linked_list); r=metajack
Fixes deprecation warnings.  Also removes a workaround for a fixed bug in Rust.

Source-Repo: https://github.com/servo/servo
Source-Revision: 2346c9b94055f84a536808e40ad0b596ee21fbf4

--HG--
rename : servo/components/util/dlist.rs => servo/components/util/linked_list.rs
2015-03-18 16:28:09 -06:00
Simon Sapin
79a6daaf67 servo: Merge #5262 - Fix some post-rustup warnings (from servo:fix-warnings); r=metajack
Source-Repo: https://github.com/servo/servo
Source-Revision: 124a78fb2e4d324a7d0ed54da1cca17839d406b7
2015-03-18 15:21:49 -06:00
Adenilson Cavalcanti
2af371c83d servo: Merge #5209 - Adding geometric information on DisplayList items while dumping (from Adenilson:displayListGeom01); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: a5217556072390131f41a7a4cd07e8eb5a671d06
2015-03-18 14:09:56 -06:00
Bryan Bell
037c151d73 servo: Merge #5088 - Enable osx cursor support (from bjwbell:osx-set_cursor); r=jdm
Dependent on https://github.com/tomaka/glutin/pull/300

Source-Repo: https://github.com/servo/servo
Source-Revision: 477f8d22a420e81881ef38b24050275a3a8e0094
2015-03-18 13:24:55 -06:00
Michael Wu
c921b145a7 servo: Merge #5257 - Enable PIE so b2s will run on Lollipop (from michaelwu:enable-b2s-pie); r=Manishearth
PIE is required on lollipop. PIE has been supported since jellybean.

Source-Repo: https://github.com/servo/servo
Source-Revision: 4dc5287b4eac2debe3ac5fc69037c8a5dc25c6dc
2015-03-18 12:30:55 -06:00
Ms2ger
66cb126a50 servo: Merge #5256 - Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-de (from servo:rustup_20150311); r=jdm
...v.

Relies on:
* https://github.com/servo/rust-geom/pull/72
* https://github.com/servo/rust-glx/pull/10
* https://github.com/servo/gleam/pull/15
* https://github.com/servo/rust-mozjs/pull/137
* https://github.com/servo/rust-core-text/pull/35
* https://github.com/servo/rust-io-surface/pull/28

Source-Repo: https://github.com/servo/servo
Source-Revision: 99cf9dbfc107bacb84dfe5afa9539a0ede3beac2
2015-03-18 11:25:00 -06:00
Matt McCoy
6554a779ae servo: Merge #4736 - Fixes #4508 dispatching input event at HTMLTextareaElement (from mattnenterprise:dispatch_input_event); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 65d4b12bf20783ea784f1c61f4b33ec0fc975f4f
2015-03-17 22:27:47 -06:00
Glenn Watson
f70c7e35d5 servo: Merge #5249 - Add support for selecting which frame is requesting a navigation (from glennw:iframe-navigate); r=jdm
This allows iframes to navigate their own history.

Source-Repo: https://github.com/servo/servo
Source-Revision: 755581ff54a6f55ff7b8cdf88e09f8f3ff8dd33a
2015-03-17 16:21:48 -06:00
Ms2ger
58bd5f94bd servo: Merge #5146 - Update web-platform-tests (from Ms2ger:wpt_20150304); r=jgraham,Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: ff39ae6cb14405360efa171b337b1ae5c414ed0e
2015-03-17 15:24:49 -06:00
Nicholas Nethercote
ceedbfed06 servo: Merge #5252 - Put system memory measurements in a memory reporter (from nnethercote:system-reporter); r=jdm
Currently the system memory measurements ("resident", "vsize", etc.) are
not reported through the generic memory reporting mechanism, simply
because they pre-date that mechanism. This changeset removes that
special-casing.

One consequence of this is that previously if a platform didn't
implement one of the basic measurements, a '???' entry would be printed.
Now nothing will be printed. This is no great loss and matches what
Firefox does.

Another consequence is that the order in which the measurements are
printed is changed. I plan to fix this soon so that reports are sorted
in a more sensible fashion.

Source-Repo: https://github.com/servo/servo
Source-Revision: 29b158e9853f5c135bf853101ee74c5618491655
2015-03-17 14:31:10 -06:00
Patrick Walton
7758f76d8a servo: Merge #5134 - layout: Implement 2D CSS transforms per CSS-TRANSFORMS § 5, 6, 7, and 8 (from pcwalton:transforms); r=SimonSapin
r? @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: 203240c1d82b780ce49261d8b47e6cbe6af50950
2015-03-17 13:39:51 -06:00
Matt Brubeck
a9553b022c servo: Merge #5233 - Fixes for positioning of RTL blocks (from mbrubeck:rtl-position); r=SimonSapin
This fixes a bug in finding the top left corner of an RTL block in physical coordinates.  (The old code used the `start` point of the `position` rect, which is not always the top left.)

It also fixes the setting of `position.start.i` in certain mixed LTR/RTL cases.

There is still a bug related to `position.size` for RTL blocks with margins.  See the FIXME comments for details.

r? @pcwalton or @SimonSapin

Source-Repo: https://github.com/servo/servo
Source-Revision: b255b49e2e2246ff8bf7f8751088bfe0a0ee41a2
2015-03-17 12:33:53 -06:00