Commit graph

4499 commits

Author SHA1 Message Date
Ms2ger
4d41f1c991 Stop using the deprecated range function. 2015-04-22 20:26:40 +02:00
Ms2ger
3cd999b60b Only define feature gates when they're used. 2015-04-22 16:59:55 +02:00
bors-servo
3a1bf45dea Auto merge of #5788 - mbrubeck:gl-version, r=glennw
Fixes #5785. r? @glennw or @larsbergstrom

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5788)
<!-- Reviewable:end -->
2015-04-21 20:09:12 -05:00
Matt Brubeck
a20bc3364c Use OpenGl ES on Android (fixes #5785). 2015-04-21 17:39:11 -07:00
bors-servo
f5d21faa8b Auto merge of #5748 - glennw:x11-hack, r=pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5748)
<!-- Reviewable:end -->
2015-04-21 16:17:36 -05:00
Glenn Watson
7af7a78243 Hack workaround for X11 + threading issue. 2015-04-22 07:13:30 +10:00
Avi Weinstock
2d110e73b5 Update Cargo.lock files w.r.t. rust-xlib. 2015-04-21 11:47:42 -04:00
Avi Weinstock
d4f7ec5b4e Update Cargo.lock files for cef/gonk. 2015-04-21 09:31:23 -04:00
Diego Marcos
c82485874d Kicks off a WebGL implementation 2015-04-20 14:29:39 -07:00
Mátyás Mustoha
5b8416a2b6 Canvas: implement context state save/restore. 2015-04-19 21:12:13 +02:00
Lars Bergstrom
52e6df435e Update Gonk README with bootstrap information
The bootstrap binaries have been approved for public use, so we do not need to request that everyone rebuild B2G in order to try out the B2S build.

r? @manishearth
2015-04-17 14:56:13 -05:00
James Graham
009e2baaf0 Add enough Webdriver support to enable Get().
This is incomplete in several ways:

* It assumes that there's only one constellation (i.e. top level browsing context), ever.
* The session support is very basic indeed (no capabilities)
* Passing channels over channels may not sit well with IPC
* The error handling is mostly missing
2015-04-16 16:02:43 +01:00
bors-servo
fe81ce942a Auto merge of #5635 - mmatyas:canvas_linecapjoin, r=jdm
This patch adds support for setting the line cap and join. However, it seems there's a problem on the azure-side, as the line cap setting doesn't work. Changing either the default values or using the new function has no effect. Line join works fine though.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5635)
<!-- Reviewable:end -->
2015-04-14 12:57:48 -05:00
Mátyás Mustoha
ccfff159e7 Canvas: added lineCap and lineJoin support. 2015-04-14 18:26:41 +02:00
Brian Anderson
9d486d0ca7 Remove cfg(not(test))s from servo/main.rs
Reorganize servo directory code top-down and add comments
Remove cfg(not(test)) from servo/lib.rs
Remove redundant thread from constellation setup
2015-04-14 10:53:56 -05:00
bors-servo
c42c2ae9b5 Auto merge of #5661 - Ms2ger:cef, r=jdm 2015-04-13 09:17:44 -05:00
Ms2ger
066cf8e706 Remove some as_slice calls in cef. 2015-04-13 14:58:49 +02:00
Ms2ger
de94e39ff7 Stop using int/uint in CEF. 2015-04-13 14:11:17 +02:00
bors-servo
f017a4459c Auto merge of #5634 - pcwalton:fix-scrolling-perf, r=metajack
This goes hand in hand with servo/glutin#18 to get our scrolling performance back on Mac.

r? @glennw
2015-04-11 11:02:32 -05:00
Patrick Walton
9f3b308381 glutin: Decrease the scrolling speed. 2015-04-10 10:39:53 -07:00
Patrick Walton
aee7f5772e glutin: Stop recompositing every time the event loop is kicked awake. 2015-04-10 10:39:52 -07:00
Patrick Walton
fd352323e0 compositing: Fix some whitespace issues and use if let in some more
places.
2015-04-10 10:39:51 -07:00
Ms2ger
95e4e25924 Move Runtime to rust-mozjs. 2015-04-10 14:53:24 +02:00
bors-servo
254f2a3b5f Auto merge of #5599 - servo:textdecoder, r=jdm 2015-04-08 20:00:40 -05:00
bors-servo
37b6738884 Auto merge of #5570 - Ms2ger:cef, r=jdm 2015-04-08 15:04:20 -05:00
Ms2ger
c0d4e27d79 Update js. 2015-04-08 16:53:14 +02:00
bors-servo
df57af1fc4 Auto merge of #5527 - jagtalon:jag/multiple-urls, r=mbrubeck
Switched from opts.urls from being of type Vec to type String and changing the name to `url` as well. Changed the other files that are using opts.urls accordingly.
2015-04-07 22:08:33 -05:00
Jag Talon
74cd4cd56a opts.rs: don't accept multiple URLs. Fixes #5520.
Switched from opts.urls from being of type Vec to type String and changing the name to `url` as well. Changed the other files that are using opts.urls accordingly.

servo/lib.rs + gonk/src/lib.rs: no need for a block scope.

cef: fix compiler errors.

- remove the use of `mut` since it's not needed.
- use `to_owned` instead of `to_string` because it's more efficient.
2015-04-07 15:46:51 -04:00
Diego Marcos
88954e3e18 Implements drawImage for html image as ImageSource 2015-04-07 11:02:50 -07:00
Ms2ger
9ddaf82d47 Use size_t for the arguments to malloc. 2015-04-07 17:56:46 +02:00
Ms2ger
6d1cde2283 Stop leaking the Vec. 2015-04-07 17:56:01 +02:00
Ms2ger
1fa1950ab1 Allocate only as much as necessary. 2015-04-07 17:55:49 +02:00
Ms2ger
cba3b6806e Use raw::Slice where it makes sense. 2015-04-07 17:54:36 +02:00
Ms2ger
b5d41aa8a5 Use boxed::into_raw where it makes sense. 2015-04-07 17:54:16 +02:00
Ms2ger
dd7ec693a5 Remove some unnecessary transmute calls. 2015-04-07 17:53:12 +02:00
Josh Matthews
5728799479 Get the barest bones of webdriver integration ready for keeners. 2015-04-06 18:22:32 -04:00
Matt Brubeck
791fa3757d Implement the :focus pseudo-class selector
Fixes #5460. This supports for simple focusable elements that are their own
DOM anchors, like text `input` fields.
2015-04-04 10:57:11 -07:00
Manish Goregaokar
51625d7d06 Fix gonk net_traits dependencies
Issue #4476
2015-04-03 13:43:16 -04:00
Ms2ger
eefb0773a0 Remove the unsafe impl Send for ConstellationControlMsg.
This impl made it possible to put raw pointers in ConstellationControlMsg and
send them across threads without considering the consequences.

This required making SmallVec1<T> Send if T is Send.
2015-04-03 13:32:51 +02:00
Ms2ger
6b127a8df8 Introduce a MouseButton enum. 2015-04-03 01:24:33 +02:00
Matt McCoy
818f1c5748 Closes #2587 Adding HTTP compression capability 2015-04-01 21:18:47 -04:00
Mátyás Mustoha
56303e21cc Canvas: added arcTo() support. 2015-04-01 21:20:05 +02:00
Patrick Walton
750bbed2cb gfx: Perform more aggressive caching in
`FontContext::get_layout_font_group_for_style()`.

There are several optimizations here:

* We make font families atoms, to allow for quicker comparisons.

* We precalculate an FNV hash of the relevant fields of the font style
  structure.

* When obtaining a platform font group, we first check pointer equality
  for the font style. If there's no match, we go to the FNV hash. Only
  if both caches miss do we construct and cache a font group. Note that
  individual fonts are *also* cached; thus there are two layers of
  caching here.

15% improvement in total layout thread time for Facebook Timeline.
2015-04-01 08:58:16 -07:00
Patrick Walton
66dd8c8a6c layout: Implement CSS transitions per CSS-TRANSITIONS § 2.
Transition events are not yet supported, and the only animatable
properties are `top`, `right`, `bottom`, and `left`. However, all other
features of transitions are supported. There are no automated tests at
present because I'm not sure how best to test it, but three manual tests
are included.
2015-03-31 08:46:11 -07:00
Adenilson Cavalcanti
cdebb3ca54 Load a placeholder when a url to an image is broken.
I decided to use the old Netscape broken image link icon (later we may
replace the image asset for something more trendier). The ref test will
expect that a failed load should display the rippy image.

ImageCacheTask users can define if a placeholder image should be loaded
at start up or not. This enables both the new behavior (e.g. always
return an image even for broken urls) as also the previous one.
2015-03-30 10:02:54 -07:00
Ms2ger
259d650a21 Remove an unused import.
I accidentally left it in after removing the calls to stdout/stderr in
d926b8342b.
2015-03-30 10:22:31 +02:00
bors-servo
acf98dcccd auto merge of #5444 : servo/servo/gonk-warnings, r=jdm 2015-03-29 17:54:59 -06:00
bors-servo
39556cc832 auto merge of #5422 : bdero/servo/bdero/box-syntax, r=jdm
Closes #5417
2015-03-29 17:10:01 -06:00
Corey Farwell
d838fcce30 Remove some unnecessary uses of as_slice
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:

* `String` -> `str`
* `Atom` -> `str`

The latter of those two requires, a bump of the locked `string-cache`
library
2015-03-29 14:42:19 -04:00
Brandon DeRosier
ccc55d658f Use box syntax instead of Box::new()
Closes #5417
2015-03-29 13:41:14 -04:00