Commit graph

13214 commits

Author SHA1 Message Date
Martin Robinson
ac5525aeeb Integrate iframes into the display list
Instead of always promoting iframes to StackingContexts, integrate them
into the display list. This prevents stacking bugs when
non-stacking-context elements should be drawn on top of iframes.

To accomplish this, we add another step to ordering layer creation,
where LayeredItems in the DisplayList are added to layers described by
the LayerInfo structures collected at the end of the DisplayList.
Unlayered items that follow these layered items are added to
synthesized layers.

Another result of this change is that iframe layers can be positioned
directly at the location of the iframe fragment, eliminating the need
for the SubpageLayerInfo struct entirely.

Iframes are the first type of content treated this way, but this change
opens up the possibility to properly order canvas and all other layered
content that does not create a stacking context.

Fixes #7566.
Fixes #7796.
2015-10-20 07:29:06 -07:00
bors-servo
90dd3cdc09 Auto merge of #8023 - mrobinson:zindex, r=pcwalton
Z-index should be ignored for non-positioned stacking contexts

When a stacking-context is not positioned, its z-index should be
ignored. This is per CSS 2 9.9.1. The only exception to this is when
the z-index is applied to an element with display: flex | inline-flex.
inline-flex does not appear to be implemented at this time so we only
do this for flex.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8023)
<!-- Reviewable:end -->
2015-10-16 12:13:49 -06:00
Martin Robinson
f2a66af463 Z-index should be ignored for non-positioned stacking contexts
When a stacking-context is not positioned, its z-index should be
ignored. This is per CSS 2 9.9.1. The only exception to this is when
the z-index is applied to an element with display: flex | inline-flex.
inline-flex does not appear to be implemented at this time so we only
do this for flex.
2015-10-16 10:36:13 -07:00
bors-servo
96ca6b6c6d Auto merge of #8035 - sliz1:issues/8028, r=Manishearth
Issue 8028: `parse_html` should take `Url` rather than `&Url`

fixes #8028

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8035)
<!-- Reviewable:end -->
2015-10-16 11:24:08 -06:00
bors-servo
ef1f0479ad Auto merge of #8051 - Ms2ger:patches, r=larsbergstrom
Remove long-obsolete /etc/patches directory.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8051)
<!-- Reviewable:end -->
2015-10-16 09:30:14 -06:00
bors-servo
724d4e191b Auto merge of #8043 - eefriedman:async-listener-mut, r=jdm
Make AsyncResponseListener methods take `&mut self`

Gets rid of a bunch of useless `Cell`/`RefCell` types.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8043)
<!-- Reviewable:end -->
2015-10-16 08:49:13 -06:00
bors-servo
7c7dbde0f4 Auto merge of #8026 - eefriedman:js-rooting, r=nox
Fix uses of JS<T> as a type on the stack

`JS<T>` belongs on the heap, and only on the heap.  This is a collection of fixes so that code uses either `Root<T>` or `&T` to pass around garbage-collected pointers.

Ideally, we could completely ban constructing a `JS<T>` outside of constructor functions, but we aren't quite there yet.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8026)
<!-- Reviewable:end -->
2015-10-16 08:05:59 -06:00
Ms2ger
18f36d075c Remove long-obsolete /etc/patches directory. 2015-10-16 14:47:58 +02:00
bors-servo
ed7ddaa97a Auto merge of #8050 - Ms2ger:test-ref, r=frewsxcv
Use wptrunner for some old-style reftests.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8050)
<!-- Reviewable:end -->
2015-10-16 06:46:23 -06:00
Ms2ger
c80d061e20 Move border_collapse_missing_cell_a.html to wpt reftests. 2015-10-16 14:44:59 +02:00
Ms2ger
e619617239 Move border_code_tag.html to wpt reftests. 2015-10-16 14:40:55 +02:00
Ms2ger
107c59d5ca Move border_black_{groove,ridge,solid}.html to wpt reftests. 2015-10-16 14:28:47 +02:00
Ms2ger
1f921c367a Move blur_a.html to wpt reftests. 2015-10-16 14:25:49 +02:00
Ms2ger
cd9fc225f5 Move block_replaced_content_{a,b}.html to wpt reftests. 2015-10-16 14:20:16 +02:00
Ms2ger
6d5da817e8 Move block_image.html to wpt reftests. 2015-10-16 14:15:20 +02:00
bors-servo
efc4ce876f Auto merge of #8045 - 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/8045)
<!-- Reviewable:end -->
2015-10-16 05:05:48 -06:00
bors-servo
67e8ec997f Auto merge of #8049 - Ms2ger:warnings, r=nox
Enable some warnings for generated code.

None of those warnings currently occur.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8049)
<!-- Reviewable:end -->
2015-10-16 04:09:42 -06:00
Ms2ger
1f03ce1b1f Enable some warnings for generated code.
None of those warnings currently occur.
2015-10-16 12:07:57 +02:00
Corey Farwell
64715b5448 Move servo_center_a.html to wpt reftests. 2015-10-15 23:24:33 -04:00
Corey Farwell
b2eaf1cf4f Move setattribute_id_restyle_a.html to wpt reftests. 2015-10-15 23:21:52 -04:00
Corey Farwell
84af16af95 Move simple_inline_absolute_containing_block_a.html to wpt reftests. 2015-10-15 23:19:24 -04:00
Corey Farwell
2bb4d4c99f Move stacked_layers.html to wpt reftests. 2015-10-15 23:16:20 -04:00
Corey Farwell
d27c262f00 Move stacking_context_overflow_a.html to wpt reftests. 2015-10-15 23:13:17 -04:00
Corey Farwell
541baa5168 Move stacking_context_overflow_relative_outline_a.html to wpt reftests. 2015-10-15 23:09:46 -04:00
Corey Farwell
b17a395415 Move style_is_in_doc.html to wpt reftests. 2015-10-15 23:06:44 -04:00
Corey Farwell
cb6c43c18e Move submit_focus_a.html to wpt reftests. 2015-10-15 23:03:24 -04:00
Corey Farwell
af75427f19 Move table_auto_width.html to wpt reftests. 2015-10-15 23:00:18 -04:00
Corey Farwell
bb22a642b9 Move table_caption_bottom_a.html to wpt reftests. 2015-10-15 22:57:20 -04:00
Corey Farwell
91588f555e Move table_caption_top_a.html to wpt reftests. 2015-10-15 22:54:17 -04:00
Corey Farwell
de2252853b Move table_cell_float_a.html to wpt reftests. 2015-10-15 22:51:14 -04:00
Corey Farwell
a5ca38c321 Move table_center_a.html to wpt reftests. 2015-10-15 22:48:26 -04:00
Corey Farwell
640837b67e Move table_colspan_fixed_a.html to wpt reftests. 2015-10-15 22:45:22 -04:00
Corey Farwell
9e2bfb961c Move table_colspan_simple_a.html to wpt reftests. 2015-10-15 22:38:57 -04:00
Corey Farwell
4891c45c25 Move table_containing_block_a.html to wpt reftests. 2015-10-15 22:36:43 -04:00
Corey Farwell
acae23ab1a Move table_float_translation_a.html to wpt reftests. 2015-10-15 22:34:17 -04:00
Corey Farwell
454df5256c Move table_intrinsic_style_specified_width_a.html to wpt reftests. 2015-10-15 22:31:16 -04:00
Corey Farwell
956409288e Move table_margin_auto_a.html to wpt reftests. 2015-10-15 22:27:21 -04:00
Corey Farwell
1dd6aeccbc Move table_padding_a.html to wpt reftests. 2015-10-15 22:22:23 -04:00
Corey Farwell
48d345447e Move table_percentage_capping_a.html to wpt reftests. 2015-10-15 22:20:03 -04:00
Corey Farwell
63bb425e7d Move table_percentage_width_a.html to wpt reftests. 2015-10-15 22:17:52 -04:00
Corey Farwell
97d857c492 Move table_preferred_width_a.html to wpt reftests. 2015-10-15 22:14:07 -04:00
Corey Farwell
cfa3f83948 Move text_transform_capitalize_a.html to wpt reftests. 2015-10-15 22:10:27 -04:00
Corey Farwell
fbc4dd18ea Move transform_3d.html to wpt reftests. 2015-10-15 22:07:18 -04:00
Corey Farwell
fa8971588a Move text_justify_none_a.html to wpt reftests. 2015-10-15 22:03:19 -04:00
Corey Farwell
731c1a491c Move text_decoration_cached.html to wpt reftests. 2015-10-15 21:55:57 -04:00
Corey Farwell
5bf38ab538 Move text_shadow_multiple_shadows_a.html to wpt reftests. 2015-10-15 21:53:49 -04:00
Corey Farwell
7d45db1ea8 Move table_expansion_to_fit_a.html to wpt reftests. 2015-10-15 21:51:40 -04:00
Corey Farwell
f4fde1fa84 Move text_align_start_end.html to wpt reftests. 2015-10-15 21:49:07 -04:00
Corey Farwell
b1de1d4829 Move table_width_attribute_a.html to wpt reftests. 2015-10-15 21:47:02 -04:00
Corey Farwell
f32f38031c Move text_align_justify_a.html to wpt reftests. 2015-10-15 21:45:02 -04:00