Commit graph

9364 commits

Author SHA1 Message Date
bors-servo
f4a362725f auto merge of #5183 : aweinstock314/servo/master, r=saneyuki
...via introduction of Worker::WorkerErrorHandler (Closes #5171).
2015-03-09 17:00:51 -06:00
bors-servo
2df4dd9e09 auto merge of #5143 : mbrubeck/servo/rtl, r=pcwalton
...and vice-versa.  This is not a complete fix for all mixed-direction layout cases, but it fixes enough problems to make some simple test cases pass, like tha attached reftest.

There are FIXME comments for many of the remaining issues.  In particular, this does not yet handle RTL layout of fixed/absolute elements, nor does it completely fix the overconstrained_block reftest.

r? @SimonSapin or @pcwalton
2015-03-09 15:54:51 -06:00
Matt Brubeck
cabbbcc978 Keep track of the containing block writing mode.
This is necessary for correctly converting `relative_containing_block_size`
to physical coordinates.
2015-03-09 14:22:36 -07:00
Matt Brubeck
8221bfc3ef Layout fixes for RTL child flows in LTR parents
...and vice-versa.  This is not a complete fix for all mixed-direction layout
cases, but it fixes enough problems to make some simple test cases pass, like
tha attached reftest.

There are FIXME comments for many of the remaining issues.  In particular,
this does not yet handle RTL layout of fixed/absolute elements.
2015-03-09 14:21:26 -07:00
Mátyás Mustoha
c98bca6130 Canvas: added arc(). 2015-03-09 21:55:40 +01:00
bors-servo
7cd776b74f auto merge of #5184 : Ms2ger/servo/disable-flaky-canvas-reftest, r=jdm 2015-03-09 12:27:52 -06:00
Ms2ger
8343eb0b8a Disable intermittently failing canvas_transformations_scale_001.htm. 2015-03-09 18:16:08 +01:00
Avi Weinstock
7803f2b216 Subsume ScriptMsg::WorkerDispatchErrorEvent into ScriptMsg::RunnableMsg via introduction of Worker::WorkerErrorHandler (Closes #5171). 2015-03-09 09:24:40 -04:00
Tetsuharu OHZEKI
fbacd1a4c4 Merge pull request #5179 from saneyuki/ignore
remove the trailing slash for consistence.
2015-03-09 17:44:34 +09:00
James Gilbertson
fafc357308 Fix broken viewport percentage length units after a viewport resize.
When a viewport is resized, the computed values for a style containing viewport percentage length units become stale. However, there's no way for those styles to be invalidated after a resize. As a solution, this commit invalidates the computed values cache after a resize has occurred, which is probably over-kill.

A better solution would probably be to track under what conditions computed values remain valid, and invalidate them as indicated.
2015-03-08 13:06:27 -06:00
Tetsuharu OHZEKI
27dfbb69c1 remove the trailing slash for consistence. 2015-03-09 02:55:14 +09:00
Simon Sapin
09c36de8f1 Merge pull request #5178 from saneyuki/ignore
Ignore /.cargo/
2015-03-08 18:18:17 +01:00
Tetsuharu OHZEKI
772291b9f5 Ignore /.cargo/ 2015-03-09 01:29:05 +09:00
bors-servo
e404cf3763 auto merge of #5174 : ehegnes/servo/issue-5159, r=Manishearth
Fix warnings and introduce usage of `std::env` over deprecated `std::os`
functions.
2015-03-08 00:51:44 -07:00
bors-servo
e8ea416581 auto merge of #5168 : Manishearth/servo/cargo-home, r=SimonSapin 2015-03-08 00:03:45 -07:00
Eric Hegnes
20cb2c395d Fixes #5159
Fix warnings and introduce usage of `std::env` over deprecated `std::os`
functions.
2015-03-08 01:37:48 -05:00
bors-servo
da880af742 auto merge of #5170 : metajack/servo/update-cocoa-glutin, r=pcwalton
This just requires updating glutin and cocoa to pick up some backported fixes.
2015-03-07 20:45:48 -07:00
Manish Goregaokar
cfdad335bd Add support for $CARGO_HOME in servobuild 2015-03-08 01:34:38 +05:30
bors-servo
3b14df16c6 auto merge of #5172 : servo/servo/alpha, r=SimonSapin
Rebase of #5123. (Fixes #5123.) Thanks @gille-leblanc!

Reftest list check is checked using Python's default string comparison.
Also added a notice in the tidy script when there are no errors.

Fixes #5092
2015-03-07 10:48:51 -07:00
Simon Sapin
f770dbabd7 Warn about sorting alphabetically in the reftest list file. 2015-03-07 17:58:00 +01:00
Gilles Leblanc
54dfb659ec Organize reftest list alphabetically and make the tidy script check it
Reftest list check is checked using Python's default string comparison.
Also added a notice in the tidy script when there are no errors.

Fixes #5092
2015-03-07 17:51:17 +01:00
bors-servo
4f3feed2be auto merge of #5150 : Adenilson/servo/reflowNotifications03, r=jdm 2015-03-06 21:48:50 -07:00
Jack Moffitt
43c82b9076 Fix scrolling on OS X.
This just requires updating glutin and cocoa to pick up some backported fixes.
2015-03-06 16:37:29 -07:00
bors-servo
73e5bbec43 auto merge of #5054 : psdh/servo/scriptimplementation, r=jdm
Fixes #4089
2015-03-06 13:36:53 -07:00
Adenilson Cavalcanti
618f56410d Implements reflow events debugging.
Start servo with -Z relayout-event and you should have
reflow events printed to the terminal.
2015-03-06 12:27:18 -08:00
bors-servo
f7725b6667 auto merge of #5167 : metajack/servo/fix-post-build, r=mbrubeck
`./mach run --release` was completely broken and always ran the dev profile.
2015-03-06 12:18:56 -07:00
Jack Moffitt
aedd157035 Fix post build commands.
`./mach run --release` was completely broken and always ran the dev profile.
2015-03-06 10:36:45 -07:00
bors-servo
4bd5aed500 auto merge of #5153 : cyndis/servo/check-font-result, r=jdm
Thread font load errors from platform font loading code to
FontContext::get_layout_font_group_for_style, and cache the failure
result, instead of panicing the thread when a font fails to load.

Before this patch, a failed font load would panic a LayoutTask,
causing a cascade of panics, eventually aborting the whole engine
during a panic within panic.

On my Arch Linux machine almost every page would crash in this manner,
including e.g. reddit.com and cnn.com. Mosf of the requested fonts would
load fine but some single variant of Helvetica would fail always. Not sure
how to create a test for this as it seems pretty system-specific.

Cheers,
cyndis
2015-03-06 10:31:05 -07:00
bors-servo
eda9c0c9ac auto merge of #5139 : JIoJIaJIu/servo/trace, r=jdm 2015-03-06 09:42:52 -07:00
Mikko Perttunen
92a4bba785 Handle font load errors in FontContext
Thread font load errors from platform font loading code to
FontContext::get_layout_font_group_for_style, and cache the failure
result, instead of panicing the thread when a font fails to load.

Before this patch, a failed font load would panic a LayoutTask,
causing a cascade of panics, eventually aborting the whole engine
during a panic within panic.
2015-03-06 18:18:22 +02:00
Guro Bokum
bf26d61d5e ScriptTask::mouse_over_targets is not traced #4985 2015-03-06 20:22:41 +07:00
bors-servo
1a73766db2 auto merge of #5105 : gilles-leblanc/servo/issue-5063, r=jdm
Adds hostsfile parsing support for:
* Tabs
* Comments (line and end of line)
* IPv4 address validation
* Basic IPv6 address validation
* End of line whitespaces
* Host name alias (multiple host names per address)

Fixes #5063
2015-03-05 20:03:55 -07:00
Gilles Leblanc
70aa253a65 Specify regex and regex_macros version numbers
For compatibility with current Rust version.

Issue #5063
2015-03-05 21:09:41 -05:00
bors-servo
a557b51c28 auto merge of #5154 : luniv/servo/viewpoint-percent-lengths, r=SimonSapin
Spec: http://dev.w3.org/csswg/css-values-3/#viewport-relative-lengths
2015-03-05 18:55:02 -07:00
Gilles Leblanc
0faa55d2ce Add more robust hostsfile parsing
Adds hostsfile parsing support for:
* Tabs
* Comments (line and end of line)
* IPv4 address validation
* Basic IPv6 address validation
* End of line whitespaces
* Host name alias (multiple host names per address)

Fixes #5063
2015-03-05 20:33:33 -05:00
bors-servo
0a7e495bea auto merge of #5161 : glennw/servo/workaround-race, r=pcwalton
A race condition exists where pipelines that are removed from a document
may not ever trigger a paint for that pipeline. The compositor relies
on a paint occurring for each pipeline before outputting the image when
in reftest mode.
2015-03-05 18:15:50 -07:00
Glenn Watson
14e438391a Disable flaky reftests until a proper solution is found.
A race condition exists where pipelines that are removed from a document
may not ever trigger a paint for that pipeline. The compositor relies
on a paint occurring for each pipeline before outputting the image when
in reftest mode.
2015-03-06 10:24:20 +10:00
Prabhjyot Singh Sodhi
64ba4a914e implement missing steps from "prepare a script" algorithm
Fixes #4089
2015-03-06 03:16:59 +05:30
James Gilbertson
1931a69ad2 Remove un-used use statement 2015-03-05 12:45:59 -07:00
James Gilbertson
a8cd40e270 Remove the 'ch' font-relative length unit 2015-03-05 12:45:58 -07:00
James Gilbertson
dc5a9e56c7 The 'font-size' property needs to use context.inherited_font_size, not context.font_size 2015-03-05 12:45:58 -07:00
bors-servo
7fc37dfaa7 auto merge of #5135 : iamdanfox/servo/fix-5120-rename-layout-util, r=jdm
A simple rename/refactor (https://github.com/servo/servo/issues/5120)

My first servo contribution!
2015-03-05 11:09:58 -07:00
Dan Fox
559ff68b31 Get rid of servo_util 2015-03-05 17:42:05 +00:00
Dan Fox
19686acdec Merge in servo/master 2015-03-05 17:34:18 +00:00
Simon Sapin
c066377fc5 Add support for changing the viewport size in reftests.
Usage example, in `*.list` files:

    resolution=200x300 == something.html something_ref.html
2015-03-05 16:52:16 +01:00
bors-servo
caf5663e09 auto merge of #5155 : Ms2ger/servo/unused-import, r=SimonSapin 2015-03-05 08:27:50 -07:00
Ms2ger
ff2f7ea567 Remove an unused import from properties.rs. 2015-03-05 16:21:57 +01:00
James Gilbertson
bc1c44bbc2 Implement viewport percentage length units ('vw', 'vh', 'vmin', 'vmax') 2015-03-05 07:11:34 -07:00
James Gilbertson
16a8047343 Defer media query width computation until evalation 2015-03-05 07:09:10 -07:00
James Gilbertson
41786c4cb4 Refactor style::values::specified::Length to store length by kind (absolute, font-relative or character width) 2015-03-05 07:09:10 -07:00