Commit graph

3667 commits

Author SHA1 Message Date
bors-servo
1fd7650de5 auto merge of #3752 : pcwalton/servo/default-cpu, r=larsbergstrom
We've discussed this some and I think there's consensus to do it as a
pragmatic decision for now. CPU painting is more stable, especially with
buggy drivers, and faster (because we aren't caching the necessary
OpenGL objects yet and possibly for other reasons), so it provides a
better "out of the box" experience for newcomers to Servo who don't know
to pass the `-c` option. This patch continues to reftest both Skia and
Skia-GL out of a desire to keep options open. Skia-GL remains a
first-class citizen.

r? @metajack
2014-10-21 21:18:33 -06:00
bors-servo
691e42f7ef auto merge of #3749 : pcwalton/servo/update-rust-azure, r=metajack
r? @metajack
2014-10-21 19:54:37 -06:00
bors-servo
f5ad89f927 auto merge of #3747 : mrobinson/servo/validate-display-list, r=pcwalton
When this option is enabled, the layout task will print an error when
display list items draw outside their owning Flow's position rect. This
will make it easier to detect layout errors before they break rendering.

This is a command-line option for the moment, because we violate this
rule quite a bit still. Once all bugs causing this are fixed, we can be
more aggressive about enabling the option.
2014-10-21 17:51:43 -06:00
bors-servo
3936d14260 auto merge of #3746 : mrobinson/servo/debug-fragment-borders, r=pcwalton
This is quite a bit cleaner than abusing the rust debug functionality.
If we start collecting too many debugging options in the servo
executable we could opt to organize them into a single option.

Fixes #2263.
2014-10-21 17:06:40 -06:00
Patrick Walton
32e34663cd gfx: Switch the default to CPU painting.
We've discussed this some and I think there's consensus to do it as a
pragmatic decision for now. CPU painting is more stable, especially with
buggy drivers, and faster (because we aren't caching the necessary
OpenGL objects yet and possibly for other reasons), so it provides a
better "out of the box" experience for newcomers to Servo who don't know
to pass the `-c` option. This patch continues to reftest both Skia and
Skia-GL out of a desire to keep options open. Skia-GL remains a
first-class citizen.
2014-10-21 11:13:21 -07:00
Martin Robinson
2d5168a1e5 Add an option to show debug fragment borders
This is quite a bit cleaner than abusing the rust debug functionality.
If we start collecting too many debugging options in the servo
executable we could opt to organize them into a single option.

Fixes #2263.
2014-10-21 08:49:25 -07:00
Martin Robinson
adecdbd4cf Add an option to validate display list items
When this option is enabled, the layout task will print an error when
display list items draw outside their owning Flow's position rect. This
will make it easier to detect layout errors before they break rendering.

This is a command-line option for the moment, because we violate this
rule quite a bit still. Once all bugs causing this are fixed, we can be
more aggressive about enabling the option.
2014-10-21 08:47:40 -07:00
Glenn Watson
cf3d9dffd1 Update rust-core-text, handle empty font collections. Fixes #3703. 2014-10-21 14:54:37 +10:00
Patrick Walton
d08dfc0bcf gfx: Update rust-azure to pick up arcs, gradients, and subpixel text 2014-10-20 21:36:28 -07:00
Glenn Watson
298fc08e6f Update rust-cssparser to revision required by cssom branch. 2014-10-21 08:53:32 +10:00
Clark Gaebel
81bd3cbd9d Fixes the table_percentage_width_a.html reftest with incremental reflow turned on. 2014-10-20 11:13:31 -07:00
Glenn Watson
076495db94 Use opts as a global, to avoid cloning and passing the struct all over the code. 2014-10-20 10:48:47 +10:00
Glenn Watson
b816550a17 Remove render backend option as it doesn't work and confuses people. 2014-10-20 07:39:36 +10:00
Glenn Watson
a63ed9d2a2 Update SHA1 for rust-mozjs. Also update the android Cargo.lock file for recent changes. 2014-10-17 10:30:23 +10:00
Keegan McAllister
9da7679367 Use html5ever for HTML parsing 2014-10-16 13:06:34 -07:00
bors-servo
afc144aa39 auto merge of #3679 : zmike/servo/embedding-string_list, r=larsbergstrom
Implements the full cef_string_list API

r+ @larsbergstrom ?
2014-10-15 09:48:24 -06:00
Mike Blumenkrantz
31db638961 embedding: cef_string_list_copy() 2014-10-15 11:08:20 -04:00
Mike Blumenkrantz
04020d2a19 embedding: cef_string_list_free() 2014-10-15 11:08:20 -04:00
Mike Blumenkrantz
866483f05e embedding: cef_string_list_clear() 2014-10-15 11:08:17 -04:00
Mike Blumenkrantz
9e5b240899 embedding: cef_string_list_value() 2014-10-15 11:08:17 -04:00
Mike Blumenkrantz
f957f989cf embedding: cef_string_list_append() 2014-10-15 11:08:14 -04:00
Mike Blumenkrantz
ee8ef615a6 embedding: cef_string_list_size() 2014-10-15 11:04:36 -04:00
Mike Blumenkrantz
4d8ed45e7b embedding: begin cef string_list api
cef_string_list_alloc()
2014-10-15 11:04:36 -04:00
Mike Blumenkrantz
9fe95fc77e embedding: implement cef_string_utf16_cmp() 2014-10-15 11:04:36 -04:00
Josh Matthews
a96bae4b94 Update rust-http to pick up latest additions. 2014-10-15 00:05:02 -04:00
bors-servo
0487671dab auto merge of #3672 : mrobinson/servo/background-color, r=zwarich
Instead of relying on a scene-wide background color, all layers can now
have their own background color.
2014-10-14 21:27:26 -06:00
Clark Gaebel
f552e2f750 try to reset flows which need reflow, since reflow isn't yet idempotent 2014-10-14 10:33:46 -07:00
Martin Robinson
fbd0b6f9d0 Allow individual layers to render their own background color
Instead of relying on a scene-wide background color, all layers can now
have their own background color.
2014-10-14 09:59:07 -07:00
Mike Blumenkrantz
5bbce40efe handle str::from_utf8() failure, improve return calls 2014-10-13 01:46:00 -04:00
Mike Blumenkrantz
62deac9346 use enc.len() for cef_string_utf8_to_utf16 conversion size 2014-10-13 01:32:32 -04:00
Mike Blumenkrantz
cb5d7b98bf remove rust-encoding usage from cef 2014-10-12 23:36:43 -04:00
Mike Blumenkrantz
f657e76e13 implement cef_string_utf16_to_utf8() 2014-10-12 06:00:01 -04:00
Mike Blumenkrantz
e794f856cf implement cef_string_utf8_to_utf16() 2014-10-12 06:00:01 -04:00
Mike Blumenkrantz
ddbecf2882 use rust-encoding to correctly(?) set utf16 strings for cmdline args as expected 2014-10-12 06:00:01 -04:00
Matt Brubeck
77d32ee447 Move windowing code out of the compositor
This is mainly just moving code around, in preparation for further changes to
the "windowing" API.
2014-10-10 11:36:12 -07:00
Patrick Walton
01c90d8d6a layout: Implement z-index. 2014-10-08 22:30:44 -07:00
Robin Stocker
8a5c6a0d3b Allow to specify port with --devtools option (fixes #3597)
Note that using `servo --devtools http://example.org` doesn't work. In
that case either the port must be specified or the option moved to the
end. This is done by getopts and is the same for other such options,
e.g. `--profile`.
2014-10-09 00:39:31 +11:00
Glenn Watson
69d98204a0 Fix missing field in CEF port. 2014-10-07 08:17:51 +10:00
Martin Robinson
62ef7cd7ff Use LayerPixel for Layer bounds and most arguments
When interacting with Layers it is simpler to use LayerPixels, which
are unscaled pixels in the Layer coordinate system. This removes a lot
of room for error and makes things simpler.
2014-09-30 17:42:00 -07:00
bors-servo
698b916c09 auto merge of #3530 : kmcallister/servo/namespace-atom, r=Ms2ger 2014-09-30 02:42:23 -06:00
Keegan McAllister
d50114c41d Use string-cache's Namespace type 2014-09-29 21:40:54 -07:00
Glenn Watson
2e32720129 Enable acid2 reftest on Linux. Update rust-layers. 2014-09-30 14:31:11 +10:00
Keegan McAllister
6429750b33 Eliminate servo_util::atom
We only needed this for Encodable, and now we use JSTraceable instead.
2014-09-29 18:39:36 -07:00
Matt Brubeck
5f0d2ae98c Pass a viewport to the rendering code
Part of servo/rust-layers#114
2014-09-29 15:48:42 -07:00
Simon Sapin
b3245fa407 Upgrade to rustc d2b30f7d3 2014-09-23 2014-09-29 17:41:45 +01:00
bors-servo
177127e597 Merge pull request #3398 from glennw/config-res
Allow resolution to be configured on command line. Default to 1280x1024.

Reviewed-by: SimonSapin
2014-09-25 18:27:38 -06:00
Martin Robinson
80433f7ea0 Properly size root layers
Root layers should be sized to their frame rectangles and the root of
the root layers should track the window size. This is important because
layers need to be properly sized to scroll.
2014-09-25 07:57:44 -07:00
Glenn Watson
c2522ec127 Change default back to 800x600 as mac travis builders don't work with 1280x1024 2014-09-24 06:59:05 +10:00
Glenn Watson
c33f18b7df Allow resolution to be configured on command line. Default to 1280x1024. 2014-09-24 06:59:05 +10:00
Manish Goregaokar
5b866e9e46 Fix CEF 2014-09-23 17:37:28 +05:30