Commit graph

2018 commits

Author SHA1 Message Date
Ms2ger
ee4c56bd8b Remove rtinstrument (fixes #4600).
The code has been disabled during the last rust upgrade, and has not found an
owner. Since the next rust upgrade will bitrot it even more, it is better to
remove it for now. If anyone wishes to restore it, the code remains in version
history.
2015-01-22 14:49:26 +01:00
Ms2ger
024571dfa3 Use chars().count() rather than char_len().
The latter is obsolete in current Rust.
2015-01-22 14:49:26 +01:00
Ms2ger
faefb27f3e Use std::sync::atomic::Ordering explicitly. 2015-01-22 14:49:25 +01:00
Ms2ger
524966e3af Use std::cmp::Ordering explicitly. 2015-01-22 14:49:25 +01:00
Simon Sapin
d034a6c6bc Port to the new cssparser.
https://github.com/servo/rust-cssparser/pull/68
2015-01-21 22:23:46 +01:00
Ms2ger
7d1b567744 Encapsulate to-be-cleaned-up refcounted pointers.
This will allow us to make them Send in the future.
2015-01-21 20:04:51 +01:00
Ms2ger
808315926c Pass a String to spawn_named.
IntoString has been removed from Rust, and named() will take a String, so
there is no good reason to do otherwise here.
2015-01-21 11:23:19 +01:00
bors-servo
94ebc7c32d auto merge of #4682 : servo/servo/to_owned, r=jdm
into_string has been removed from Rust.
2015-01-20 07:54:46 -07:00
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
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
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
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
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
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
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
58c1b121a7 auto merge of #4654 : Ms2ger/servo/bindings-docs, r=jdm 2015-01-18 20:48:48 -07: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
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
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
donaldpipowitch
d0cc280119 added unit tests for TextInput - fixes #4352 2015-01-16 12:14:20 +01:00
Gilles Leblanc
9fe39951b0 Write a macro or syntax extension to generate OpenType tags
Fixes #4556
2015-01-15 20:01:40 -05: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
Edit Balint
1d91e9000c Use DrawTarget::new instead of DrawTarget::new_with_data in CanvasPaintTask 2015-01-15 14:04:46 +01:00
Josh Matthews
67423fbac4 Use latest mozjs. 2015-01-14 18:21:53 -05: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
Glenn Watson
f74db53329 Update glutin and add hidpi methods. 2015-01-14 10:39:28 +10:00
bors-servo
432b89f60f auto merge of #4616 : glennw/servo/update-png-hb, r=metajack 2015-01-13 14:06:48 -07:00
bors-servo
62d1761d2a auto merge of #4598 : mttr/servo/table_percentage, r=pcwalton
Fixes #4421
2015-01-13 13:24:48 -07:00
Glenn Watson
c8e3d13821 Update png/harfbuzz, use prefixed symbol names. 2015-01-13 14:34:11 +10:00