Commit graph

6773 commits

Author SHA1 Message Date
Glenn Watson
a63ed9d2a2 Update SHA1 for rust-mozjs. Also update the android Cargo.lock file for recent changes. 2014-10-17 10:30:23 +10:00
bors-servo
83196ddb26 auto merge of #3697 : pcwalton/servo/get-layout-font-group, r=glennw
Seems to be a 38% layout win on a site I tested with a lot of text.

Other browser engines typically do not duplicate the information in the font style struct. `FontStyle` actually predates @SimonSapin's CSS selector matching library. It's time to get rid of it!

r? @glennw
2014-10-16 15:06:19 -06:00
bors-servo
8d3b107568 auto merge of #3670 : kmcallister/servo/h5e-take2, r=jdm
r? @Ms2ger, @jdm

The parser is now a JS-managed object and we use hooks in html5ever to trace its internal state.  This should be memory-safe even if arbitrary JavaScript can run during a parse.  Please let me know if you think of a reason it wouldn't be!

I think the likely outcome of a garbage collection during parsing is a dynamic `RefCell` borrow failure, but I'm going to look into that after this lands.  It should be safe to trace the parser while it's mutably borrowed, as long as it's not shared between threads, so we can probably switch to `UnsafeCell`.
2014-10-16 14:15:21 -06:00
Keegan McAllister
c9b7d1f8df Add a reftest for #1324
Closes #1324, fixed by html5ever.
2014-10-16 13:06:34 -07:00
Keegan McAllister
9da7679367 Use html5ever for HTML parsing 2014-10-16 13:06:34 -07:00
Keegan McAllister
3fbb25cc43 Update test expectations
The hubbub bindings set document.characterSet but we don't use it for anything.
html5ever doesn't parse charsets from <meta> tags yet, and I'd rather add that
as part of adding actual support for other encodings (which Servo never had
with hubbub).

Switching to html5ever also changes attribute parsing slightly (bringing it in
line with the current spec) and this breaks some of the <img srcset> tests.  We
don't support this feature at all.

Some other things change due to bugs in hubbub not present in html5ever.
2014-10-16 13:06:04 -07:00
bors-servo
5be4f40bef auto merge of #3699 : Ms2ger/servo/jsstring_to_str, r=jdm
This appears to be a more sensible location for them.

Relevant to #433.
2014-10-16 08:45:19 -06:00
bors-servo
b80b18f1cb auto merge of #3698 : ema-fox/servo/remove-monocache, r=jdm 2014-10-16 07:33:21 -06:00
Ms2ger
b60a601f56 Move jsstring_to_str and jsid_to_str to conversions.rs.
This appears to be a more sensible location for them.

Relevant to #433.
2014-10-16 10:42:09 +02:00
Emanuel Rylke
62595ff448 Remove unused implementation of MonoCache 2014-10-16 08:39:51 +02:00
bors-servo
1de2fb3721 auto merge of #3695 : saneyuki/servo/cell, r=jdm
#3050
2014-10-16 00:03:18 -06:00
bors-servo
9af0900060 auto merge of #3684 : Manishearth/servo/dom_struct, r=jdm
This attribute implies #[jstraceable], #[privatize], and #[must_root].
2014-10-15 23:24:20 -06:00
Patrick Walton
a6fcec468f layout: Remove FontStyle in favor of using the font style struct
directly, and optimize `get_layout_font_group()` to use a small vector.

Seems to be a 38% layout win on a site I tested with a lot of text.
2014-10-15 22:17:57 -07:00
Manish Goregaokar
38cbf86c8f Make auto-derived JSTraceable have #[inline] methods 2014-10-16 10:20:20 +05:30
Manish Goregaokar
3f2cbb275b Use #[dom_struct] everywhere 2014-10-16 10:20:18 +05:30
Manish Goregaokar
c45550de73 Add unifying #[dom_struct] attribute (fixes #3667) 2014-10-16 10:18:56 +05:30
bors-servo
84b2fe54b9 auto merge of #3694 : saneyuki/servo/node, r=jdm
`Node.unsafe_get_flags()` returns `*const NodeFlags`, but `NodeFlags` has only `u8` length.
So We should just returns a raw value instead of any pointers.
2014-10-15 22:45:19 -06:00
bors-servo
a6001329b8 auto merge of #3693 : ehsan/servo/3248, r=jdm
This fixes #3248.

r? @jdm.  Please review for mistakes mercilessly!  Also, I got a host of test failures when running the worker tests, not sure if these tests are expected to pass locally or not.
2014-10-15 22:06:19 -06:00
bors-servo
f3066c70da auto merge of #3689 : cgaebel/servo/working-incremental-flow-construction, r=pcwalton
This implements fragment merging, in order to incrementally reflow linebroken
text. This makes the `whitespace_pre.html` reftest pass with incremental reflow
turned on with `-i`.
2014-10-15 21:27:20 -06:00
bors-servo
f94228d9f9 auto merge of #3662 : mukilan/servo/worker_timer, r=jdm
Closes issue #3236
2014-10-15 20:48:22 -06:00
Tetsuharu OHZEKI
2bdcc0e2c0 Use DOMRefCell<T> for HTMLInputElement's field that is borrowed from other tasks. 2014-10-16 11:17:00 +09:00
Tetsuharu OHZEKI
0d447394b2 Removes Node.unsafe_get_flags().
`Node.unsafe_get_flags()` returns `*const NodeFlags`,
but `NodeFlags` has only `u8` length.
We should just returns a raw value instead of any pointers.
2014-10-16 11:04:17 +09:00
bors-servo
b83352f7eb auto merge of #3692 : cgaebel/servo/fix-incremental-append-style, r=pcwalton
@pcwalton r?
2014-10-15 20:00:20 -06:00
Ehsan Akhgari
840d949d97 Throw DataCloneError from worker postMessage if structured clone fails
This fixes #3248.
2014-10-15 21:57:40 -04:00
Tetsuharu OHZEKI
ab90c718eb Add the comment about to use mem::transmute() for values contained in DOMRefCell. 2014-10-16 10:48:23 +09:00
bors-servo
d54fb041ba auto merge of #3691 : Ms2ger/servo/cycle-comments, r=jdm
The tracing setup has ensured that the cycles can be collected for a long time
now.
2014-10-15 18:42:20 -06:00
Mukilan Thiyagarajan
0d7e13f646 Issue #3236 - Implement timers (setTimeout/setInterval) for workers 2014-10-16 05:59:44 +05:30
Clark Gaebel
481adcd654 Fix whitespace_pre with incremental reflow turned on.
This implements fragment merging, in order to incrementally reflow linebroken
text. This makes the `whitespace_pre.html` reftest pass with incremental reflow
turned on with `-i`.
2014-10-15 16:04:21 -07:00
Clark Gaebel
0a541fc83c Fix append_style reftests with incremental reflow turned on.
@pcwalton r?
2014-10-15 15:47:11 -07:00
Ms2ger
55e01157e7 Remove obsolete comments about cycles.
The tracing setup has ensured that the cycles can be collected for a long time
now.
2014-10-16 00:43:30 +02:00
bors-servo
6a11ee89de auto merge of #3686 : cgaebel/servo/deref-flows, r=pcwalton
This patch switches FlowRefs to using the Deref and DerefMut traits, instead of
the custom `get` and `get_mut` functions.
2014-10-15 16:18:23 -06:00
Clark Gaebel
76ed7484eb Use the Deref traits for FlowRefs.
This patch switches FlowRefs to using the Deref and DerefMut traits, instead of
the custom `get` and `get_mut` functions.
2014-10-15 11:04:05 -07:00
bors-servo
afc144aa39 auto merge of #3679 : zmike/servo/embedding-string_list, r=larsbergstrom
Implements the full cef_string_list API

r+ @larsbergstrom ?
2014-10-15 09:48:24 -06:00
Mike Blumenkrantz
31db638961 embedding: cef_string_list_copy() 2014-10-15 11:08:20 -04:00
Mike Blumenkrantz
04020d2a19 embedding: cef_string_list_free() 2014-10-15 11:08:20 -04:00
Mike Blumenkrantz
866483f05e embedding: cef_string_list_clear() 2014-10-15 11:08:17 -04:00
Mike Blumenkrantz
9e5b240899 embedding: cef_string_list_value() 2014-10-15 11:08:17 -04:00
Mike Blumenkrantz
f957f989cf embedding: cef_string_list_append() 2014-10-15 11:08:14 -04:00
Mike Blumenkrantz
ee8ef615a6 embedding: cef_string_list_size() 2014-10-15 11:04:36 -04:00
Mike Blumenkrantz
4d8ed45e7b embedding: begin cef string_list api
cef_string_list_alloc()
2014-10-15 11:04:36 -04:00
Mike Blumenkrantz
9fe95fc77e embedding: implement cef_string_utf16_cmp() 2014-10-15 11:04:36 -04:00
bors-servo
08b10a6d7d auto merge of #3685 : Ms2ger/servo/doc-reflector, r=jdm
This field became unused in commit 99a36cbeb6.
2014-10-15 08:09:23 -06:00
Ms2ger
d9202f8169 Remove the reflector field from Document.
This field became unused in commit 99a36cbeb6.
2014-10-15 16:03:22 +02:00
bors-servo
687efbeabf auto merge of #3682 : gilles-leblanc/servo/issue-3681, r=jdm
This test had been commented out because it was breaking the travis ci
build but was passing locally.

Issue #3681
2014-10-14 23:48:22 -06:00
bors-servo
7c1054e6ab auto merge of #3574 : saneyuki/servo/cell, r=jdm
#3050
2014-10-14 23:12:24 -06:00
Tetsuharu OHZEKI
b42a91d0e9 Use DOMRefCell<T> in CharacterData. 2014-10-15 13:44:02 +09:00
Tetsuharu OHZEKI
fb98384fa5 Use DOMRefCell<T> in Element. 2014-10-15 13:44:02 +09:00
Tetsuharu OHZEKI
2d5d1e36ad Use DOMRefCell<T> in Attr. 2014-10-15 13:41:03 +09:00
Tetsuharu OHZEKI
80593d9cc5 Add DOMRefCell<T> for safe borrowing in layout.
This type simply wraps `RefCell<T>` to add the special method,
and introduce the method to return the pointer of the value contained in
itself, for used in layout task.
2014-10-15 13:41:03 +09:00
bors-servo
9cb2b3a5c0 auto merge of #3680 : jdm/servo/updatehttp, r=jdm,metajack
Needed for #3596.
2014-10-14 22:36:25 -06:00