Commit graph

6931 commits

Author SHA1 Message Date
Patrick Walton
a94e13f888 script: Use an FNV hash to hash event listeners.
The security properties of SipHash are irrelevant for event listeners
and the creation of the random number generator was showing up high in
the profiles.
2014-10-28 11:34:06 -07:00
Patrick Walton
8ab354ac08 script: Don't create a temporary vector on the heap when inserting
non-fragment nodes.
2014-10-28 11:18:43 -07:00
Patrick Walton
6a7a96a86c script: Don't dirty nodes that are already dirty. 2014-10-28 11:17:26 -07:00
Patrick Walton
e034c1cee2 script: Use String::new() instead of the formatting infrastructure
when constructing DOM unique IDs.

This was showing up in the RoboHornet profile.
2014-10-28 11:16:20 -07:00
Patrick Walton
6f577c7c84 script: Avoid a temporary when constructing <td> and <tr> elements.
Was a huge improvement to RoboHornet.
2014-10-28 11:14:06 -07:00
Patrick Walton
5e9127e2b2 script: Use a 16-element SmallVec for the root collection.
In my tests the size of the root collection never exceeded 7, so 16
seems like a nice conservative number.
2014-10-28 11:12:09 -07:00
bors-servo
541077286c auto merge of #3819 : mrobinson/servo/clean-up-events, r=pcwalton
There are many function and methods that operate on a single layer, that can really just be methods on a CompositorLayer trait. This greatly simplifies the way that Compositor interacts with its child layers. This PR is just code motion.
2014-10-28 09:39:43 -06:00
Martin Robinson
80a6f3a732 Move compositor_data.rs to compositor_layer.rs.
The new name better reflects the majority of the code in the file.
2014-10-28 08:33:23 -07:00
Martin Robinson
c0fa32e7aa Combine events and CompositorData methods into CompositorLayer
This is a more natural collection of methods, as they all operate
directly on layers and accept a layer as their first argument.
2014-10-28 08:33:23 -07:00
Martin Robinson
96f6c53b52 Make compositor event handling a Layer trait
This simplifies the way that event handling interacts with the
compositor.
2014-10-28 08:33:23 -07:00
bors-servo
9e94ecf99c auto merge of #3820 : cgaebel/servo/rebase-lalehs-patch, r=pcwalton
I addressed all but one of the code review comments, which was a request
for documentation on where a number came from (which I'm not qualified to
answer), and rebased this on to latest master.

xref: #3505 cc: @LalehB @larsbergstrom

r? @pcwalton
2014-10-27 18:06:43 -06:00
Clark Gaebel
293969cb7d Addressed code review comments. 2014-10-27 14:19:44 -07:00
LalehB
b0d16462ff Adding back-off instead of busy-spinning
Also changed the total number of spinning similar to Cilk
2014-10-27 14:14:21 -07:00
bors-servo
005cfed6e9 auto merge of #3816 : glennw/servo/cargo-lock-fix, r=Manishearth 2014-10-26 16:12:38 -06:00
Glenn Watson
2f5dfe1b39 Fix cargo.lock that got out of sync when two successive commits (1) updated the SHA (2) added the dependency to util with the old SHA. 2014-10-27 07:37:53 +10:00
bors-servo
43830e9be9 auto merge of #3815 : Ms2ger/servo/image-cache-task, r=glennw 2014-10-26 15:33:38 -06:00
Ms2ger
7d44f7bf1e Cleanup some code in image_cache_task.rs. 2014-10-26 22:26:43 +01:00
bors-servo
7ba02bb11d auto merge of #3812 : mukilan/servo/lenient-this, r=Ms2ger
Closes issue #3760
2014-10-25 11:42:38 -06:00
Mukilan Thiyagarajan
75d41c2146 Disable Document interface attribute onreadystatechange test
idlharness.js does not understand [LenientThis] yet
2014-10-25 23:01:59 +05:30
Mukilan Thiyagarajan
9653965380 Add content test for [LenientThis] attribute Document.onreadystatechange 2014-10-25 17:55:08 +05:30
Mukilan Thiyagarajan
e023662571 Implement [LenientThis] support and enable it in Document.webidl
Closes issue #3760
2014-10-25 12:05:36 +05:30
bors-servo
0c12f630e6 auto merge of #3797 : kmcallister/servo/domrefcell, r=jdm
r? @mbrubeck, @jdm

Alternative to #3770 and #3716.
2014-10-24 18:09:27 -06:00
Keegan McAllister
f508a82582 Provide safety check helpers in release builds
debug_assert! uses

    if cfg!(not(ndebug)) { ... }

so the body in a release build is dead code, but it still needs to compile.
2014-10-24 16:53:58 -07:00
Keegan McAllister
4dee8ecdf0 task_state: Generate the list of task types
Also fix warnings.
2014-10-24 16:44:34 -07:00
Keegan McAllister
49234484d6 Ignore the HTML parser's borrow flag in GC tracing
Adds some other dynamic checks in debug builds.
2014-10-24 16:27:37 -07:00
Keegan McAllister
6ec0939a22 Dynamically check DOMRefCell access from layout in debug builds 2014-10-24 16:27:37 -07:00
Keegan McAllister
0162214b1f Fix a layout method to use borrow_for_layout() 2014-10-24 16:27:36 -07:00
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