Commit graph

8257 commits

Author SHA1 Message Date
Deokjin Kim
ee0ce0d8f4 Merge branch 'master' of https://github.com/servo/servo into font_style 2015-01-20 11:02:41 +09:00
Deokjin Kim
80a6f0ae08 Support 'font-style: oblique'. 2015-01-20 10:48:23 +09:00
bors-servo
ccf5f96fa9 auto merge of #4672 : glennw/servo/make-glutin-default, r=larsbergstrom
This change makes glutin the default windowing system on mac/linux.

If you run into any issues with the glutin system, you can temporarily
build the GLFW system with the following command:

cd components/servo
../../mach cargo build --no-default-features --features=glfw

Once any glutin related issues have been sorted out, the GLFW
port will be removed.
2015-01-19 16:30:47 -07:00
Glenn Watson
a2a74cbb4f Switch linux reftests on glutin to use osmesa software rendering. 2015-01-20 09:09:45 +10:00
bors-servo
1e85bb67b2 auto merge of #4667 : brunoabinader/servo/share-css-properties-style-script, r=SimonSapin
Avoids duplicated code when implementing the CSS properties accessors in
CSSStyleDeclaration WebIDL. Servo internal CSS properties are not
accessible.

CSS property "float" is unnacessible because we currently lack support
for BinaryName IDL annotation (#4435).

Fixes #4429, #4430.
2015-01-19 14:54:46 -07:00
Glenn Watson
6dd12855ac Android doesn't need to explicitly specify glutin now. 2015-01-20 07:53:47 +10:00
Glenn Watson
a7d18f9c03 Switch the default windowing system to glutin. See below for details.
This change makes glutin the default windowing system on mac/linux.

If you run into any issues with the glutin system, you can temporarily
build the GLFW system with the following command:

cd components/servo
../../mach cargo build --no-default-features --features=glfw

Once any glutin related issues have been sorted out, the GLFW
port will be removed.
2015-01-20 07:07:16 +10:00
bors-servo
0a787ddb67 auto merge of #4669 : servo/servo/glennw-patch-1, r=larsbergstrom
Needs to be updated for arch / fedora too, but I'm not sure what the relevant packages are.
2015-01-19 13:30:47 -07:00
glennw
eaa600a8c6 Add libosmesa6-dev to debian dependencies
Needs to be updated for arch / fedora too, but I'm not sure what the relevant packages are.
2015-01-20 06:17:13 +10:00
bors-servo
e4f0b816d5 auto merge of #4655 : glennw/servo/cef-glutin, r=larsbergstrom 2015-01-19 12:57:46 -07:00
Bruno de Oliveira Abinader
dc008977f9 Share supported CSS properties between style and CSSStyleDeclaration
Avoids duplicated code when implementing the CSS properties accessors in
CSSStyleDeclaration WebIDL. Servo internal CSS properties are not
accessible.

CSS property "float" is unnacessible because we currently lack support
for BinaryName IDL annotation (#4435).

Fixes #4429, #4430.
2015-01-19 13:21:03 -04:00
bors-servo
d747a33df9 auto merge of #4664 : Ms2ger/servo/from_elem, r=larsbergstrom
It is obsolete on Rust master.
2015-01-19 09:12:46 -07:00
bors-servo
ee94b3e8bf auto merge of #4662 : Ms2ger/servo/overlong, r=larsbergstrom
The Rust style guide suggests 100, but we have too many violations in the
tree already. This check can be tightened over time.
2015-01-19 08:33:48 -07:00
bors-servo
f3dfe04fa4 auto merge of #4657 : glennw/servo/cef-close, r=larsbergstrom 2015-01-19 07:57:47 -07:00
Ms2ger
05c4e3b9f5 Stop using Vec::from_elem.
It is obsolete on Rust master.
2015-01-19 14:42:30 +01:00
Ms2ger
394f816343 Disallow lines that span more than 160 columns.
The Rust style guide suggests 100, but we have too many violations in the
tree already. This check can be tightened over time.
2015-01-19 13:48:32 +01:00
bors-servo
60a901328a auto merge of #4661 : Ms2ger/servo/wpt_20150119, r=Manishearth 2015-01-19 05:12:50 -07:00
Ms2ger
b6e5e823e6 Update web-platform-tests. 2015-01-19 13:06:43 +01:00
bors-servo
58c1b121a7 auto merge of #4654 : Ms2ger/servo/bindings-docs, r=jdm 2015-01-18 20:48:48 -07:00
Glenn Watson
8c3e3b66b3 Add basic support for closing cef tabs. Prevents crashes, but leaks memory for now. 2015-01-19 10:43:57 +10:00
Glenn Watson
36e151dc95 Add more key mappings. 2015-01-19 08:57:05 +10:00
Glenn Watson
db31b818bc Switch CEF on screen build from glfw -> glutin. 2015-01-19 08:56:43 +10:00
Ms2ger
31edd21d68 Document global.rs. 2015-01-18 23:38:42 +01:00
Ms2ger
ecf0317bc0 Document error.rs. 2015-01-18 23:32:03 +01:00
bors-servo
9844ec907e auto merge of #4648 : PeterReid/servo/issue4662, r=jdm
Fixes #4622

Previously, when the edit point was being clamped leftward by a shortened
line, it would be placed one one character too far to the left instead of
at the very end.

The "if" removed here was introduced in f686943eb4 to fix a crash, but the underlying reason for the crash was the incorrect "- 1", which has been there since the beginning ( 80764f65e3 ).
2015-01-18 09:39:48 -07:00
bors-servo
ea83ffdb98 auto merge of #4621 : jimrhoskins/servo/closest, r=jdm
fixes #4603

- Add definition to the Element.webidl and implementation to element.rs.
- Create inclusive_ancestors helper in NodeHelpers
- Update test expectations
2015-01-18 08:09:43 -07:00
Peter Reid
2963caf708 Fix TextInput's edit point after set_content
Previously, when the edit point was being clamped leftward by a shortened
line, it would be placed one one character too far to the left instead of
at the very end.
2015-01-17 12:41:18 -05:00
Jim Hoskins
7759358e09 Implement Element#closest
fixes #4603

- Add definition to the Element.webidl and implementation to element.rs.
- Create inclusive_ancestors helper in NodeHelpers
- Update test expectations
2015-01-17 07:29:33 -08:00
bors-servo
2a9acdcb73 auto merge of #4540 : saneyuki/servo/internal, r=jdm
Fix #4504
2015-01-16 13:51:43 -07:00
bors-servo
efae66bccb auto merge of #4625 : mrobinson/servo/surface-refactor, r=jdm
We no longer need to implement from_azure_surface in Servo, now that
rust-layers is handling more of the glue between rust-layers and Azure.
2015-01-16 12:57:44 -07:00
Simon Sapin
c70197b48d Merge pull request #4642 from martine/patch-1
Minor fix to Arch developer setup instructions
2015-01-16 18:47:42 +00:00
bors-servo
6d7c4aac9c auto merge of #4643 : mrobinson/servo/disable-util-doctests, r=jdm
Because of bug in rustdoc, a new rust-layers dependency on rust-azure
will cause linking issues. See
https://github.com/rust-lang/rust/issues/21246 for details.
2015-01-16 11:09:46 -07:00
Martin Robinson
09c9343294 Disable util crate doctests
Because of bug in rustdoc, a new rust-layers dependency on rust-azure
will cause linking issues. See
https://github.com/rust-lang/rust/issues/21246 for details.
2015-01-16 10:04:15 -08:00
Evan Martin
ee4a00ff4a Minor fix to Arch developer setup instructions
Add the flag that says "Don't reinstall already-installed packages".
Otherwise the suggested command means "reinstall all these packages".
2015-01-16 09:48:16 -08:00
bors-servo
e7d79842a8 auto merge of #4569 : donaldpipowitch/servo/add-unit-tests-for-textinput, r=jdm
Please bear with me. This is the first Rust code I've ever written and the first systems programming language I've ever used.

I've added unit tests for all methods of TextInput ( - except `handle_keydown`). I probably didn't cover all cases - I don't know if this is a real requirement until we have some coverage tools which identify all missing cases easily.
If someone could show me how to create a `KeyboardEvent` easily I could add another test for `handle_keydown`.

Other questions:
1. Running `$ time ./mach test-unit -c script test_textinput` takes `3m29.536s` on my MacBook Pro (2012). Any hints on speeding this up?
2. Who is responsible for the feedback of the unit tests? It would be nice if the output could be colored (e.g. make `11 passed;` green, `0 failed;` red and so on.)
2015-01-16 08:18:46 -07:00
donaldpipowitch
d0cc280119 added unit tests for TextInput - fixes #4352 2015-01-16 12:14:20 +01:00
bors-servo
9fd675c266 auto merge of #4568 : gilles-leblanc/servo/issue-4556, r=Manishearth
Fixes #4556
2015-01-15 18:06:48 -07:00
Gilles Leblanc
9fe39951b0 Write a macro or syntax extension to generate OpenType tags
Fixes #4556
2015-01-15 20:01:40 -05:00
bors-servo
31627bdc9d auto merge of #4641 : glennw/servo/update-hb, r=larsbergstrom 2015-01-15 15:09:47 -07:00
Glenn Watson
02b91994b3 Update harfbuzz module. 2015-01-16 11:03:46 +13:00
Martin Robinson
c3d23a0630 Update to latest rust-azure and rust-layers
We no longer need to implement from_azure_surface in Servo, now that
rust-layers is handling more of the glue between rust-layers and Azure.
2015-01-15 12:59:11 -08:00
bors-servo
772570d06b auto merge of #4638 : akiss77/servo/pr-update-mozjs, r=jdm
As requested in https://github.com/servo/mozjs/pull/26
2015-01-15 09:48:48 -07:00
Akos Kiss
7773ecf2ba Update to use latest mozjs-sys 2015-01-15 16:07:22 +00:00
bors-servo
d9d7fdf759 auto merge of #4637 : ebalint/servo/canvas, r=jdm 2015-01-15 08:39:45 -07:00
Edit Balint
1d91e9000c Use DrawTarget::new instead of DrawTarget::new_with_data in CanvasPaintTask 2015-01-15 14:04:46 +01:00
bors-servo
ddf77a1cff auto merge of #4635 : jdm/servo/updatemozjs, r=jdm 2015-01-14 16:24:46 -07:00
Josh Matthews
67423fbac4 Use latest mozjs. 2015-01-14 18:21:53 -05:00
bors-servo
4bb5822f91 auto merge of #4632 : jdm/servo/reporterr, r=Ms2ger
Rebased version of #4399 that addresses points 2 & 5 from https://critic.hoppipolla.co.uk/showcomment?chain=9848 . Introduction of an AutoJSAPI equivalent and setting the error reporter to null will come later, as they are much larger changes and we're currently blocking any further updates to rust-mozjs that are unrelated to error reporting.
2015-01-14 12:30:49 -07:00
Josh Matthews
66fee39045 Stop pretending to do anything except eagerly report pending exceptions after invoking a callback. 2015-01-14 13:05:32 -05:00
Josh Matthews
159235b3d0 Add handling for unreported exceptions when invoking callback objects. 2015-01-14 12:54:46 -05:00