Commit graph

1499 commits

Author SHA1 Message Date
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
bors-servo
8103bba19b auto merge of #4619 : mbrubeck/servo/dead-top-margin, r=Ms2ger
Added in #1988 but never used. r? @pcwalton
2015-01-12 16:12:46 -07:00
Bruno de Oliveira Abinader
9da761fc64 Check quirks mode in {Document,Element}::getElementsByClassName
Fixes #4604.
2015-01-12 17:38:13 -04:00
Matt Brubeck
97a8b617fb Remove unused Flow method 2015-01-12 09:58:53 -08:00
bors-servo
a227faa416 auto merge of #4594 : evilpie/servo/window-proxy, r=jdm
After this patch somebody just needs to implement the new IndexedGetter (and probably frames/length) on window to fix #4589.
2015-01-12 09:45:47 -07:00
Tom Schuster
d54a45a2b1 Implement most of the important WindowProxy traps 2015-01-12 17:41:48 +01:00
bors-servo
e6fe9f1409 auto merge of #4582 : pcwalton/servo/blend-modes, r=glennw
`background-blend-mode` is not yet supported because we don't support
multiple backgrounds yet.

r? @glennw
2015-01-12 09:03:48 -07:00
Patrick Walton
97d3443003 layout: Implement mix-blend-mode per COMPOSITING § 3.4.1.
`background-blend-mode` is not yet supported because we don't support
multiple backgrounds yet.
2015-01-12 08:02:41 -08:00
bors-servo
b020a015d9 auto merge of #4615 : kartaa/servo/master, r=jdm
Update wrapper.rs for Issue #4572 in servo/servo.
2015-01-12 08:24:47 -07:00
Ashish Sharma
fd0a0d6da8 remove unused function with_layout_node #4572
remove documentation in with_layout_node #4572

remove unused documentation in function with_layout_node #4572
2015-01-12 20:48:02 +05:30
Matthew Rasmus
182f1a0d01 table_wrapper.rs: Fix for percentage widths
Fixes #4421
2015-01-11 11:39:09 -08:00
Ms2ger
58b89939c2 Fix the documentation comment for the devtools library.
Also removed a duplicated feature gate.
2015-01-11 11:27:46 +01:00
Ms2ger
8efcca986c Remove RethrowContentExceptions and related infrastructure.
We do not intend to implement the DOM in JS, so this code isn't necessary.
2015-01-10 20:22:03 +01:00
Tetsuharu OHZEKI
4629b7ccf0 fixup! Make script load event asynchronous for internal scripts 2015-01-11 03:38:57 +09:00
Tetsuharu OHZEKI
b984815b98 Make script load event asynchronous for internal scripts 2015-01-11 03:38:57 +09:00
Tetsuharu OHZEKI
f627b35ef6 Add the enum to describe the script origin. 2015-01-11 03:38:57 +09:00
bors-servo
879af966b3 auto merge of #4609 : Ms2ger/servo/runnable-self-by-value, r=jdm 2015-01-10 10:30:44 -07:00
bors-servo
e17d390714 auto merge of #4608 : Ms2ger/servo/ReverseChildrenIterator, r=jdm 2015-01-10 09:51:44 -07:00
Ms2ger
01444022b0 Make StructuredCloneData an opaque struct. 2015-01-10 17:47:42 +01:00
Ms2ger
b2f40b9873 Make Runnable::handler take self by value.
With my thanks to kimundi and eddyb for their help in making this approach
work.
2015-01-10 17:47:18 +01:00