Commit graph

13571 commits

Author SHA1 Message Date
Corey Farwell
48ea5959c7 Remove unnecessary allocation with getElementById 2015-10-24 17:50:42 -04:00
bors-servo
354e75a447 Auto merge of #8171 - Ms2ger:reflector, r=jdm
Remove the default implementation of Reflectable::init_reflector.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8171)
<!-- Reviewable:end -->
2015-10-23 17:49:28 -05:00
bors-servo
22a6884a67 Auto merge of #8140 - mrobinson:canvas, r=pcwalton
Integrate Canvas into the DisplayList

Canvas is currently given a layer at the stacking context level.
Instead it's DisplayItem should be given a layer directly. This fixes
painting order issues where canvases are painted on top of other
positioned content that is later in tree order. It always simplifies
the code a bit.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8140)
<!-- Reviewable:end -->
2015-10-23 17:17:12 -05:00
bors-servo
ff2c7bb47b Auto merge of #8137 - romankl:gh/8126, r=nox
Remove unnecessary rooting from `CSSStyleDeclaration`

This commit will replace calls to `self.owner.root()` with `self.owner` to avoid unnecessary rooting of JS elements objects.

Ref.- Issue: #8126

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8137)
<!-- Reviewable:end -->
2015-10-23 16:38:24 -05:00
bors-servo
e3bcf7bab7 Auto merge of #8091 - nox:cleanup-range, r=eefriedman
Remove Rc<T> usage from Range

I initially used this to correctly handle ranges when their respective containers
are mutated, to get weak references of Range objects. I now realise that the weak
references should be handled at a lower level, closer to the JS-managed object.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8091)
<!-- Reviewable:end -->
2015-10-23 16:00:00 -05:00
Roman Klauke
fe2401c566 Remove unnecessary rooting from CSSStyleDeclaration
This commit will replace calls to `self.owner.root()` with `self.owner`
to avoid unnecessary rooting of JS elements objects.

Ref.- Issue: #8126
2015-10-23 20:27:15 +02:00
bors-servo
ac8097b5d2 Auto merge of #8170 - Ms2ger:cleanup-canvas, r=frewsxcv
Cleanup some code in htmlcanvaselement.rs.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8170)
<!-- Reviewable:end -->
2015-10-23 09:34:28 -06:00
Ms2ger
970b8aa8bc Remove the unused default implementation of Reflectable::init_reflector. 2015-10-23 17:21:04 +02:00
Ms2ger
9be52dc41a Implement GlobalRef::reflector as an inherent method.
Reflectable is meant for actual DOM objects, not for references to them.
2015-10-23 17:20:17 +02:00
Ms2ger
8361d54a6e Cleanup some code in htmlcanvaselement.rs. 2015-10-23 16:55:12 +02:00
bors-servo
6f59acdd0a Auto merge of #8152 - frewsxcv:reftests, r=jdm
Use wptrunner for some old-style reftests.

Part of #5618

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8152)
<!-- Reviewable:end -->
2015-10-23 08:51:29 -06:00
Corey Farwell
40caa2aee0 Move box_shadow_bg.html to wpt reftests. 2015-10-23 10:27:38 -04:00
Corey Farwell
4c6a9625bf Move border_spacing_empty_table.html to wpt reftests. 2015-10-23 10:27:37 -04:00
Corey Farwell
890e1d93e2 Move border_style_none_a.html to wpt reftests. 2015-10-23 10:27:36 -04:00
Corey Farwell
62ef402f90 Move acid1_a.html to wpt reftests. 2015-10-23 10:27:34 -04:00
Corey Farwell
ecb5a1f7c6 Move case-insensitive-font-family.html to wpt reftests. 2015-10-23 10:27:33 -04:00
Corey Farwell
6034364552 Move float_clearance_intrinsic_width_a.html to wpt reftests. 2015-10-23 10:27:31 -04:00
Corey Farwell
fc958d4d2d Move box_shadow_border_box_a.html to wpt reftests. 2015-10-23 10:27:30 -04:00
Corey Farwell
4116aa5e18 Move box_shadow_inset_bg.html to wpt reftests. 2015-10-23 10:27:29 -04:00
Corey Farwell
8cb1aa0d67 Move empty_cells_a.html to wpt reftests. 2015-10-23 10:27:27 -04:00
Corey Farwell
02a35f5540 Move filter_opacity_a.html to wpt reftests. 2015-10-23 10:27:26 -04:00
Corey Farwell
0439894c7c Move hide_after_create.html to wpt reftests. 2015-10-23 10:27:25 -04:00
Corey Farwell
0eb67166ed Move br.html to wpt reftests. 2015-10-23 10:27:23 -04:00
Corey Farwell
01c5134208 Move box_shadow_paint_order_a.html to wpt reftests. 2015-10-23 10:27:22 -04:00
Corey Farwell
8ba9e6efe3 Move box_sizing_border_box_a.html to wpt reftests. 2015-10-23 10:27:21 -04:00
Corey Farwell
247a16a078 Move canvas_as_block_element_a.html to wpt reftests. 2015-10-23 10:27:20 -04:00
Corey Farwell
8eca6d1cb6 Move clear_generated_content_table_a.html to wpt reftests. 2015-10-23 10:27:18 -04:00
Corey Farwell
0a6feb0c9a Move calc-basic.html to wpt reftests. 2015-10-23 10:27:17 -04:00
Corey Farwell
debad3fa35 Move box_sizing_sanity_check_a.html to wpt reftests. 2015-10-23 10:27:16 -04:00
Corey Farwell
cd543ea85a Move counters_simple_a.html to wpt reftests. 2015-10-23 10:27:15 -04:00
Corey Farwell
83439dc1df Move first_child_pseudo_a.html to wpt reftests. 2015-10-23 10:27:13 -04:00
Corey Farwell
cee4879dd1 Move clip_a.html to wpt reftests. 2015-10-23 10:27:11 -04:00
Corey Farwell
468df737d2 Move external_media_query_link.html to wpt reftests. 2015-10-23 10:27:10 -04:00
Corey Farwell
ff216d25e3 Move counters_nested_a.html to wpt reftests. 2015-10-23 10:27:09 -04:00
Corey Farwell
b628b8f131 Move canvas_linear_gradient_a.html to wpt reftests. 2015-10-23 10:27:07 -04:00
Corey Farwell
d9fb897e34 Move external_media_query_style.html to wpt reftests. 2015-10-23 10:27:06 -04:00
Corey Farwell
b4f5496ccc Move filter_sepia_a.html to wpt reftests. 2015-10-23 10:27:05 -04:00
Corey Farwell
7491fd834b Move data_img_a.html to wpt reftests. 2015-10-23 10:27:03 -04:00
Corey Farwell
49498fbda1 Move filter_inline_a.html to wpt reftests. 2015-10-23 10:27:02 -04:00
Corey Farwell
bfbf881ca0 Move float_positioned_pseudo_stacking_context.html to wpt reftests. 2015-10-23 10:27:00 -04:00
Corey Farwell
3147a1e13a Move floated_generated_content_a.html to wpt reftests. 2015-10-23 10:26:59 -04:00
Corey Farwell
af6941bfd0 Move float_overflow_area_a.html to wpt reftests. 2015-10-23 10:26:57 -04:00
Corey Farwell
4f8a84109e Move floated_table_with_margin_a.html to wpt reftests. 2015-10-23 10:26:56 -04:00
Corey Farwell
b687c1c7f9 Move float_under_top_margin_a.html to wpt reftests. 2015-10-23 10:26:55 -04:00
Corey Farwell
3615db8964 Move height_compute_reset.html to wpt reftests. 2015-10-23 10:26:53 -04:00
Corey Farwell
1f8f2872de Move first_of_type_pseudo_a.html to wpt reftests. 2015-10-23 10:26:52 -04:00
Corey Farwell
4efa4677e0 Move float_right_intrinsic_width_a.html to wpt reftests. 2015-10-23 10:26:51 -04:00
Corey Farwell
ddf2ef0da0 Move font_face_attribute.html to wpt reftests. 2015-10-23 10:26:49 -04:00
Corey Farwell
fdfe2084f8 Move font_color_attribute_a.html to wpt reftests. 2015-10-23 10:26:48 -04:00
Corey Farwell
20b38229e7 Move float_intrinsic_width_a.html to wpt reftests. 2015-10-23 10:26:46 -04:00