Commit graph

8321 commits

Author SHA1 Message Date
bors-servo
89645391bf auto merge of #4678 : Ms2ger/servo/doc-clone, r=jdm 2015-01-20 07:21:48 -07:00
Ms2ger
01ed338746 Move to to_owned rather than into_string.
into_string has been removed from Rust.
2015-01-20 14:49:07 +01:00
bors-servo
2d5b0e0855 auto merge of #4679 : Ms2ger/servo/is_not_null, r=larsbergstrom
It has been removed from Rust.
2015-01-20 06:00:47 -07:00
Ms2ger
7eb659371d Stop calling is_not_null.
It has been removed from Rust.
2015-01-20 13:08:49 +01:00
bors-servo
2629445748 auto merge of #4674 : Ms2ger/servo/doc-js, r=jdm 2015-01-20 04:13:01 -07:00
Ms2ger
cf0652812c Document structuredclone.rs. 2015-01-20 11:40:40 +01:00
bors-servo
9e78116b77 auto merge of #4677 : Ms2ger/servo/lastmodified, r=Manishearth
It has been failing in automation very frequently.
2015-01-20 03:36:45 -07:00
Ms2ger
6694fd4379 Disable document-lastModified-01.html.
It has been failing in automation very frequently.
2015-01-20 10:41:20 +01:00
bors-servo
0c87faae64 auto merge of #4676 : glennw/servo/iframe-src-fix, r=mrobinson 2015-01-20 00:09:45 -07:00
Glenn Watson
797658fb3a Fix change of src attributes on iframe (prevents SetLayerOrigin crash). 2015-01-20 15:38:58 +10:00
bors-servo
49c949803a auto merge of #4668 : mrobinson/servo/constellation-cleanup, r=glennw
The set_ids name is a holdover from a previous design and no longer
reflects what this method does. Instead move the content into
grant_paint_permission and rename it to
send_frame_tree_and_grant_paint_permission. Also move out the handling of
evicted iframes into its own method.
2015-01-19 20:33:45 -07:00
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
Ms2ger
e239bd9644 Document js.rs. 2015-01-19 23:09:00 +01:00
Ms2ger
8a08fff0b4 Remove OptionalSettable.
It was obsoleted by MutNullableJS.
2015-01-19 23:08:11 +01: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
Martin Robinson
0d297aea9b Fix set_ids naming in Constellation
The set_ids name is a holdover from a previous design and no longer
reflects what this method does. Instead move the content into
grant_paint_permission and rename it to
send_frame_tree_and_grant_paint_permission. Also move out the handling of
evicted iframes into its own method.
2015-01-19 11:30:04 -08: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