Commit graph

7054 commits

Author SHA1 Message Date
Keegan McAllister
96e180a22c Customize RefCell instead of wrapping it
This gets rid of a dubious transmute:

    let val = mem::transmute::<&RefCell<T>, &T>(&self.base);

The code duplication will be reduced once rust-lang/rust#18131 is fixed.
2014-10-24 16:27:36 -07:00
bors-servo
06f322a7db auto merge of #3806 : jdm/servo/appendintermittent, r=Ms2ger
...Fixes #3805.
2014-10-24 16:00:34 -06:00
bors-servo
3be4af057f auto merge of #3801 : jdm/servo/utildeps2, r=mbrubeck 2014-10-24 15:21:33 -06:00
Josh Matthews
c4e9a42110 Mark the append_style reftest as flaky until we get better reliability. Fixes #3805. 2014-10-24 16:50:05 -04:00
bors-servo
e100a1834f auto merge of #3803 : jdm/servo/mozjsdebug, r=mbrubeck
...n-optimized, debug build of mozjs and rust-mozjs. Update the Cargo snapshot to enable new feature support.
2014-10-24 14:39:33 -06:00
Josh Matthews
a1b2f4b590 Add an optional --debug-mozjs argument to mach build that enables a non-optimized, debug build of mozjs and rust-mozjs. Update the Cargo snapshot to enable new feature support. 2014-10-24 16:18:25 -04:00
Josh Matthews
99955da958 Add missing Cargo.lock deps change. 2014-10-24 14:22:27 -04:00
bors-servo
a258746269 auto merge of #3800 : glennw/servo/native-gfx-metadata, r=mbrubeck
This is a prerequisite for glutin support.

Tested on Linux, mac. Tested that android + cef build.
2014-10-23 23:03:29 -06:00
bors-servo
5d78d018ce auto merge of #3795 : jdm/servo/utildeps, r=metajack 2014-10-23 22:00:34 -06:00
Glenn Watson
2d6626e7ef Use WindowMethods to get native graphics metadata instead of
relying on azure. This is a prerequisite for the switch to glutin.

Tested on Linux, mac. Tested that android + cef build.
2014-10-24 13:45:42 +10:00
bors-servo
3910bc942f auto merge of #3794 : glennw/servo/font-content-opt, r=pcwalton 2014-10-23 21:09:29 -06:00
Jack Moffitt
44eec48c57 Merge pull request #3799 from glennw/update-layers
Update rust-layers and friends for android build fix.
2014-10-23 21:07:21 -06:00
Glenn Watson
0ba7d9859c Update rust-layers for android build fix. 2014-10-24 13:01:39 +10:00
bors-servo
041ab13fce auto merge of #3773 : rclanan/servo/rename-untraceable, r=jdm 2014-10-23 19:48:28 -06:00
Ray Clanan
85f746f9b9 Rename untraceable!() to no_jsmanaged_fields!(). References issue #3671 2014-10-23 21:33:32 -04:00
bors-servo
d1a1ac7e28 auto merge of #3792 : samlh/servo/patch-1, r=jdm
Small drive-by update to the style crate readme.
2014-10-23 18:42:30 -06:00
bors-servo
39d5f09350 auto merge of #3791 : jdm/servo/moreiframe, r=Ms2ger
....
2014-10-23 18:00:36 -06:00
Josh Matthews
766c3815ab Add layers dependency to util crate. Fixes #3783. 2014-10-23 19:29:05 -04:00
bors-servo
979608dbb1 auto merge of #3782 : Ms2ger/servo/cef-warnings, r=Ms2ger,metajack 2014-10-23 17:18:40 -06:00
Josh Matthews
225ec3ed4e Really fix #3738 by only processing iframe src attributes during parsing. 2014-10-23 18:58:34 -04:00
Ms2ger
a8dc87aa2c Make some warnings errors in the cef port. 2014-10-24 00:37:47 +02:00
Ms2ger
95befc2ab2 Fix build warnings in the cef port. 2014-10-24 00:37:44 +02:00
Glenn Watson
b1c226778f Cache last fontgroup. Style recalc on wikipedia/rust 66ms -> 41ms. 2014-10-24 08:25:10 +10:00
Samuel Harrington
6b88fc4c54 Update style/README.md - libcss is gone now 2014-10-23 16:23:54 -05:00
bors-servo
3c97438bdc auto merge of #3785 : zmike/servo/embedding-fixups-for-string_list, r=larsbergstrom
r+ @jdm @larsbergstrom  ?
2014-10-23 15:12:37 -06:00
bors-servo
012a80cc18 auto merge of #3772 : pcwalton/servo/slim-down-fragment, r=metajack
16% performance improvement in layout (!)

r? @metajack (or whoever)
2014-10-23 12:18:34 -06:00
Mike Blumenkrantz
69e8de33e8 embedding: add string_map_to_vec() to reduce transmute calls 2014-10-23 14:07:24 -04:00
Mike Blumenkrantz
43cc865629 embedding: fix string_list compile errors? 2014-10-23 14:07:20 -04:00
bors-servo
43b13e7548 auto merge of #3780 : Ms2ger/servo/cleanup-document, r=jdm 2014-10-23 11:36:40 -06:00
Mike Blumenkrantz
021937bca0 embedding: fix string_list deallocation where I accidentally the whole string_list 2014-10-23 12:25:53 -04:00
Ms2ger
903f3fa729 Cleanup Document::Title. 2014-10-23 18:21:33 +02:00
Ms2ger
fff0491c01 Move the methods on bare Document onto DocumentHelpers. 2014-10-23 18:21:02 +02:00
Ms2ger
d643ade7e8 Introduce LayoutDocumentHelpers::is_html_document_for_layout for LayoutElementHelpers::html_element_in_html_document_for_layout. 2014-10-23 18:20:11 +02:00
Ms2ger
32bcc192b0 Cleanup some Document methods. 2014-10-23 18:20:11 +02:00
Patrick Walton
de5e2fd5e2 layout: Shrink fragments down from 448 bytes down to 128 bytes.
16% performance improvement in layout (!)
2014-10-23 09:13:41 -07:00
bors-servo
2df236376a auto merge of #3759 : jdm/servo/readystate, r=Ms2ger
...itor after the initial parse. Fixes #1720. Fixes #3738.

r? @Ms2ger or @Manishearth
2014-10-23 09:18:37 -06:00
Josh Matthews
539c21f380 Implement Document.readyState. Prevent iframes from notifying the compositor after the initial parse. Fixes #1720. Fixes #3738. 2014-10-23 10:55:59 -04:00
bors-servo
470d27a668 auto merge of #3776 : saneyuki/servo/macro, r=jdm
Fix #3755

This doesn't convert some specialized event handlers (e.g. `HTMLBodyElement`'s ones, `HTMLElement.GetOnload()`).
2014-10-22 22:30:29 -06:00
Tetsuharu OHZEKI
0a84c5d479 Macroize event handler getters and setters. 2014-10-23 13:03:58 +09:00
bors-servo
a07b80bd56 auto merge of #3741 : cgaebel/servo/clear-reflow-flags, r=pcwalton 2014-10-22 18:48:31 -06:00
Clark Gaebel
5cd47c7670 Clear reflow flags after reflow. 2014-10-22 17:46:28 -07:00
bors-servo
a6f0159cb8 auto merge of #3765 : pcwalton/servo/profiler-cleanups, r=cgaebel
The only real user-visible change this effects is to trim URLs to 30 characters so they don't make huge lines on the terminal.

r? @cgaebel
2014-10-22 14:45:35 -06:00
bors-servo
1bc9c049c6 auto merge of #3774 : ebalint/servo/3707_DOM_getters, r=jdm 2014-10-22 13:36:38 -06:00
bors-servo
bc1f610d97 auto merge of #3775 : zmike/servo/embedding-dead_code, r=jdm
fixes #3687 

r+ @jdm @larsbergstrom ?
2014-10-22 12:54:40 -06:00
Edit Balint
daf9e59869 Make DOM getters that return &JS<T> return Temporary<T> instead #3707 2014-10-22 19:05:25 +02:00
bors-servo
01f6a8102d auto merge of #3771 : pcwalton/servo/display-list-building-cleanup, r=mrobinson
`layout::fragment` and `layout::block` were getting too big.

r? @mrobinson
2014-10-22 10:54:35 -06:00
Mike Blumenkrantz
d7cb8f8307 embedding: set string_list api functions to pub
fixes #3687
2014-10-22 11:56:00 -04:00
bors-servo
590a93120a auto merge of #3757 : brunoabinader/servo/content_changed, r=jdm
```JSRef<Attr>``` does not require allocating a ```DOMString``` for value, which are unused in most cases. It also provides more access to ```Attr``` data.
2014-10-22 09:33:37 -06:00
Bruno de Oliveira Abinader
bbab8831e0 Usage of JSRef<Attr> in before_remove_attr & after_set_attr
JSRef<Attr> does not require allocating a DOMString for value, which are
unused in most cases. It also provides more access to Attr data.
2014-10-22 11:13:58 -04:00
Patrick Walton
821793351e layout: Largely move display list building out to a separate file.
`layout::fragment` and `layout::block` were getting too big.
2014-10-22 08:02:17 -07:00