servo/components
Alan Jeffrey 237ddc3c0c Caching HTMCollections.
We cache the state of any live HTMLCollection, keeping track of

a) the optional cached length of the collection, and
b) an optional cursor into the collection (a node in the collection plus its index).

The cache is invalidated based on the version number of the node.

We use these caches for speeding up random access to the collection.
When returning coll[i], we search from the cursor, if it exists,
and otherwise search from the front of the collection.
In particular, both a forward for-loop and a backward for-loop
through the collection will now have each access take O(1)
time rather than O(n) time.

This gets 1000x speed-up on the relevant Dromaeo DOM query tests.
2015-11-06 17:23:17 -06:00
..
canvas Update euclid to 0.3 2015-10-28 21:34:23 +05:30
canvas_traits Fix serde_macros 2015-10-28 21:53:15 +05:30
compositing Auto merge of #8326 - jdm:iframehover, r=glennw 2015-11-06 06:24:59 +05:30
devtools Make DOMString a newtype around String, rather than a typedef. 2015-11-04 12:09:11 +01:00
devtools_traits Check in for task 1,4 and 5 2015-11-05 00:17:24 -05:00
gfx Auto merge of #7696 - mskrzypkows:PaintContext_Units, r=mbrubeck 2015-11-07 00:22:59 +05:30
gfx_traits Update euclid to 0.3 2015-10-28 21:34:23 +05:30
layout Auto merge of #8330 - Ms2ger:rm-screen_size, r=larsbergstrom 2015-11-07 03:03:44 +05:30
layout_traits Fix serde_macros 2015-10-28 21:53:15 +05:30
msg Fix serde_macros 2015-10-28 21:53:15 +05:30
net Check in for task 1,4 and 5 2015-11-05 00:17:24 -05:00
net_traits Check in for task 1,4 and 5 2015-11-05 00:17:24 -05:00
plugins more refactoring 2015-10-30 20:26:29 +09:00
profile New Android suppport 2015-11-04 16:29:39 -06:00
profile_traits Auto merge of #8253 - connorimes:android-energy-profiling, r=mbrubeck 2015-10-30 12:26:10 +05:30
script Caching HTMCollections. 2015-11-06 17:23:17 -06:00
script_traits Send mouse move events to the the previous layer when directing events to a new one for the first time. Resolves #7865. 2015-11-04 03:40:13 -05:00
servo Force constellation logging when running particularly frustrating tests on the build machines. Continuation of investigation for #7787. 2015-11-05 15:52:43 -05:00
style counter-reset defaults to 0, not 1. 2015-11-04 10:55:16 +01:00
style_traits Fix serde_macros 2015-10-28 21:53:15 +05:30
util Made QualName traceable by JS. 2015-11-06 17:23:15 -06:00
webdriver_server update image to 0.4.0 2015-10-21 08:37:41 +02:00
webdriver_traits Fix reported test-tidy errors for unmerged import blocks 2015-09-19 12:50:14 -04:00