Commit graph

13483 commits

Author SHA1 Message Date
bors-servo
941c06eb99 Auto merge of #8099 - Darktori:master, r=mbrubeck
Remove explicit lifetimes which can be elided

Fixes https://github.com/servo/servo/issues/8069

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8099)
<!-- Reviewable:end -->
2015-10-20 17:30:57 -06:00
Adam Szopa
88991013ab Remove explicit lifetimes which can be elided. 2015-10-21 01:27:48 +02:00
bors-servo
11d23a41b3 Auto merge of #7950 - mrobinson:layerize-iframes, r=pcwalton
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.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7950)
<!-- Reviewable:end -->
2015-10-20 16:01:38 -06:00
bors-servo
c3ab71109e Auto merge of #7951 - eefriedman:white-space, r=pcwalton
Add support for `pre-wrap` and `pre-line` values for `white-space`.

This is mostly straightforward.  I had to modify a couple of places
which were accidentally discarding whitespace.

Fixes #1513.

This fixes some relevant tests from the CSS testsuite... but a lot of
them are either manual, or don't pass because of unrelated issues.  (For
example, white-space-mixed-002 renders correctly, but
white-space-mixed-002-ref doesn't because of a float bug.)

I'd appreciate any suggestions for how to go about adding tests for this.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7951)
<!-- Reviewable:end -->
2015-10-20 12:38:54 -06:00
Eli Friedman
3a451ff845 Add support for pre-wrap and pre-line values for white-space.
This is mostly straightforward.  I had to modify a couple of places
which were accidentally discarding whitespace.

Fixes #1513.
2015-10-20 10:44:51 -07:00
bors-servo
5e4f132b3b Auto merge of #8096 - 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/8096)
<!-- Reviewable:end -->
2015-10-20 09:31:43 -06:00
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
Ms2ger
cb379861cc Move border_spacing_a.html to wpt reftests. 2015-10-20 15:55:59 +02:00
Ms2ger
50a6f9986c Move border_rounding_1px_invisible_issue_7184_a.html to wpt reftests. 2015-10-20 15:55:58 +02:00
Ms2ger
467bf11595 Move border_radius_zero_sizes_a.html to wpt reftests. 2015-10-20 15:55:57 +02:00
Ms2ger
95566ec622 Move border_radius_shorthand_a.html to wpt reftests. 2015-10-20 15:55:56 +02:00
Ms2ger
caf9d0e3cd Move border_radius_overlapping_a.html to wpt reftests. 2015-10-20 15:55:55 +02:00
Ms2ger
6b5b10924b Move border_radius_elliptical_a.html to wpt reftests. 2015-10-20 15:55:54 +02:00
Ms2ger
9cc4923c41 Move border_radius_dashed_a.html to wpt reftests. 2015-10-20 15:55:53 +02:00
Ms2ger
027609a2bf Move border_radius_clip_a.html to wpt reftests. 2015-10-20 15:55:52 +02:00
Ms2ger
ecc90eb6dd Move border_radius_asymmetric_sizes_a.html to wpt reftests. 2015-10-20 15:55:47 +02:00
Ms2ger
30e8148b93 Move border_collapse_simple_a.html to wpt reftests. 2015-10-20 15:41:50 +02:00
bors-servo
ecee44da0e Auto merge of #8088 - 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/8088)
<!-- Reviewable:end -->
2015-10-20 06:55:10 -06:00
bors-servo
36d5c0b2fb Auto merge of #8083 - jgraham:create-wpt, r=Ms2ger
Add create-wpt mach target to help with creating web-platform-tests



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8083)
<!-- Reviewable:end -->
2015-10-20 03:46:17 -06:00
James Graham
9d41ddb72c Add create-wpt mach target to help with creating web-platform-tests 2015-10-20 10:43:55 +01:00
Nathan Froyd
50b14e6670 add un-premultiply table for GetImageData
Fixes #6969.
2015-10-20 04:51:29 -04:00
bors-servo
25d3c2b655 Auto merge of #8095 - TileHalo:foo, r=Ms2ger
Removed unsafe from 'query_selector_iter'

Fixing #8078.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8095)
<!-- Reviewable:end -->
2015-10-20 01:13:49 -06:00
Leo Lahti
89e8a26539 Removed unsafe from 'query_selector_iter' 2015-10-20 09:11:06 +03:00
bors-servo
511e3c1846 Auto merge of #8092 - dagnir:remove-unused-import, r=frewsxcv
Remove unused import.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8092)
<!-- Reviewable:end -->
2015-10-19 20:48:45 -06:00
Dongie Agnir
3108f3c015 Remove unused import. 2015-10-19 14:42:18 -10:00
bors-servo
3f4ce13419 Auto merge of #8089 - glennw:iframe-flicker, r=pcwalton
Fix iframes flickering on mouse move.

Fixes #7867 (and probably several other iframe bugs).

When collecting layers for children of a pipeline, pass through the current
subpage pipeline recursively. This prevents descendant layers (such as scroll
layers) from being collected and re-created on the subsequent paint.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8089)
<!-- Reviewable:end -->
2015-10-19 17:54:12 -06:00
Corey Farwell
fffc977bc3 Move img_width_style_intrinsic_width_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
9dbcaf9f72 Move inline_block_block_direction_margins_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
5cf6255622 Move incremental_inline_layout_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
42b2a9733e Move incremental_letter_spacing_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
463ed5f0da Move inline_absolute_hypothetical_clip_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
9badd19405 Move inline_block_margin_auto_zero_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
4625d2e3d0 Move inline_block_overflow_hidden_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
603dbe377c Move list_style_image_sizing_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
176ed83609 Move inline_absolute_out_of_flow_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
a2a40068ab Move incremental_float_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
b9c502ca3f Move img_size_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
737c7fa14b Move inline_block_margin_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
e53feacee7 Move inline_block_border_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
7a79618d77 Move inline_block_parent_padding_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
b67699e377 Move inline_block_stacking_context_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
e5f4f7a436 Move inline_margin_multiple_fragments_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
dbbbac3da6 Move inline_block_min_width.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
293561a0c4 Move inline_block_img_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
d1b3e098cd Move inline_hypothetical_box_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
21d6bccf62 Move input_button_margins_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
da97da7278 Move margin_padding_inline_block_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
9fb26df3c5 Move margins_inside_floats_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
2c297877f6 Move many_brs_a.html to wpt reftests. 2015-10-19 18:34:07 -04:00
Corey Farwell
72176abbd3 Move link_style_order.html to wpt reftests. 2015-10-19 18:34:07 -04:00