servo/components
bors-servo 65c30224a1 Auto merge of #6043 - mukilan:get_root_element, r=Ms2ger
The [current implementation](http://mxr.mozilla.org/servo/source/components/script/dom/element.rs#666) is wrong as it always tries to cast the furthest ancestor into an element.
When the method is invoked on an element that is in the document tree, this will be the `Document` node, which is not an element. The ```last().map(ElementCast::to_temporary)``` returns Some(None) hence the method will return ```None```, while the correct behaviour is to return the ```html``` node.

This PR interprets the line ```"furthest ancestor element node of whatever node is being discussed"``` in the spec to mean ```"find the furthest ancestor that is an element node"```.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6043)
<!-- Reviewable:end -->
2015-05-15 03:35:37 -05:00
..
canvas Move handling of CanvasWebGLMsgs into WebGLPaintTask::handle_webgl_message. 2015-05-14 13:09:13 +02:00
compositing Make WebDriver Get() command wait on pages loading before returning. 2015-05-14 10:59:10 +01:00
devtools Fix comments in devtools. 2015-05-14 13:10:40 +02:00
devtools_traits Upgrade to Hyper 0.4.0 2015-05-12 16:48:21 +02:00
gfx gfx: Implement paint flashing, which will be useful for debugging 2015-05-14 15:45:41 -07:00
layout Auto merge of #6046 - Jinwoo-Song:background_origin, r=pcwalton 2015-05-14 20:53:02 -05:00
layout_traits Fixes a number of race conditions and reliability issues with reftests and compositor. 2015-05-14 09:35:53 +10:00
msg Auto merge of #6044 - Ms2ger:cleanup, r=jdm 2015-05-14 07:16:42 -05:00
net Upgrade to Hyper 0.4.0 2015-05-12 16:48:21 +02:00
net_traits Upgrade to Hyper 0.4.0 2015-05-12 16:48:21 +02:00
plugins Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8. 2015-05-05 10:07:34 -04:00
profile Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8. 2015-05-05 10:07:34 -04:00
profile_traits Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8. 2015-05-05 10:07:34 -04:00
script Auto merge of #6043 - mukilan:get_root_element, r=Ms2ger 2015-05-15 03:35:37 -05:00
script_traits Make WebDriver Get() command wait on pages loading before returning. 2015-05-14 10:59:10 +01:00
servo Auto merge of #6016 - zmike:embedding-windowing, r=larsbergstrom 2015-05-14 20:06:04 -05:00
style Implement 'background-origin' property in CSS3 Background 2015-05-15 10:02:58 +09:00
util gfx: Implement paint flashing, which will be useful for debugging 2015-05-14 15:45:41 -07:00
webdriver_server Add support for timing out scripts 2015-05-14 10:59:20 +01:00
webdriver_traits Add support for timing out scripts 2015-05-14 10:59:20 +01:00