bors-servo
c349b7b3a1
Auto merge of #7426 - dzbarsky:surroundcontents, r=glennw
...
Implement Range#surroundContents
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7426 )
<!-- Reviewable:end -->
2015-09-09 21:54:06 -06:00
Anthony Ramine
dc125f9eb1
Implement NonElementParentNode for DocumentFragment
2015-09-10 01:33:13 +02:00
bors-servo
f29ddb4b5d
Auto merge of #7577 - bjwbell:borders_pixel_rounding_bug, r=mbrubeck
...
gfx: Fix bug with 1px width borders disappearing
In to_nearest_azure_rect when rounding to pixel coordinates, maintain
the invariant of rect non-overlap (if before rounding two rects don't overlap).
The previous code rounded the rect top left corner to the nearest pixel with
the size rounded to the nearest pixel multiple which can violate the
non-overlap condition, e.g.
10px×9.60px at (0px,6.6px) & 10px×9.60px at (0px,16.2px)
would round to
10px×10.0px at (0px,7.0px) & 10px×10.0px at (0px,16.0px), which overlap.
Instead round each corner to the nearest pixel.
For rects that dont need to satify the non-overlap condition and with
width or height between 0.5px and 1px, rounding each rect corner to the
nearest pixel can yield an empty rect e.g.
10px×0.6px at 0px,28.56px -> 10px×0px at 0px,29px.
For this scenario a new function to_nearest_non_empty_azure_rect
rounds the rect top left corner to the nearest pixel and the rect size
to the nearest pixel multiple. It's possible for non-overlapping rects
after this rounding to overlap.
This should fix https://github.com/servo/servo/issues/7184 "rounding ...borders not to be visible", without breaking https://github.com/servo/servo/issues/7152 "Underlines less than 1px high sometimes invisible".
r? @mbrubeck
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7577 )
<!-- Reviewable:end -->
2015-09-09 13:30:41 -06:00
Bryan Bell
1f44686415
position-relative-035 reftest -> expected fail
...
There is no easy way to pass position-relative-035 & also
pass both tests/ref/border_rounding_1px_invisible_issue_7184 and
tests/ref/text_decoration_underline_subpx.
https://github.com/servo/servo/pull/7161 , "Snap rectangles to nearest
pixels...", did fix position-relative-035 (except
for OS X) but broke 1px borders.
2015-09-09 11:58:21 -07:00
bors-servo
c0381c7325
Auto merge of #7563 - mrobinson:layerize-stacking-contexts, r=pcwalton
...
Layerize StackingContexts that are on top of layers
StackingContexts that should be painted on top of StackingContexts that
are already layerized should automatically get their own layer. This
will ensure proper painting order.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7563 )
<!-- Reviewable:end -->
2015-09-09 10:52:56 -06:00
Martin Robinson
184238c348
Layerize StackingContexts that are on top of layers
...
StackingContexts that should be painted on top of StackingContexts that
are already layerized should automatically get their own layer. This
will ensure proper painting order.
2015-09-09 09:13:14 -07:00
David Zbarsky
3bec4d37dd
Implement Range#surroundContents
2015-09-08 22:01:49 -07:00
bors-servo
4221b354cf
Auto merge of #7557 - glennw:fix-layout-panic, r=pcwalton
...
Handle cases where the layout root is None. Fixes #6375 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7557 )
<!-- Reviewable:end -->
2015-09-08 20:39:09 -06:00
bors-servo
68f32f7bef
Auto merge of #7388 - paulrouget:issue-7332, r=metajack
...
Test for flexbox crasher
Closes #7332
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7388 )
<!-- Reviewable:end -->
2015-09-08 12:45:24 -06:00
bors-servo
ef8a145233
Auto merge of #7561 - servo:update-css, r=SimonSapin
...
Update CSS tests to revision 09d27d61d637da536af1d86a8d7bea157592ff9e
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7561 )
<!-- Reviewable:end -->
2015-09-08 03:46:36 -06:00
Simon Sapin
84f2ae6c93
Update CSS tests expected data to revision 09d27d61d637da536af1d86a8d7bea157592ff9e
2015-09-08 11:42:20 +02:00
Simon Sapin
5abfa12a4c
Update CSS tests to revision 09d27d61d637da536af1d86a8d7bea157592ff9e
2015-09-08 11:01:17 +02:00
bors-servo
5a0be12e43
Auto merge of #7531 - nox:template, r=Ms2ger
...
Implement <template>
All tests using iframes can't currently pass, same for innerHTML-related tests with <template> elements. The latter contradicts the spec, see the links below.
Apart from this, they work, AFAICT.
https://github.com/servo/html5ever/issues/164
https://www.w3.org/Bugs/Public/show_bug.cgi?id=27314
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7531 )
<!-- Reviewable:end -->
2015-09-08 02:29:00 -06:00
Anthony Ramine
b3820047da
Fix HTMLTemplateElement.innerHTML
...
https://github.com/w3c/DOM-Parsing/issues/1
2015-09-08 10:28:24 +02:00
Anthony Ramine
a5cefe41d0
Implement adopting and cloning steps for HTMLTemplateElement
2015-09-08 10:28:23 +02:00
Anthony Ramine
663f1d65e3
Fix tests in template-contents-owner-document-type.html
...
HTMLDocument isn't a thing anymore.
2015-09-08 10:28:22 +02:00
Anthony Ramine
a7476a758e
Bump html5ever to 0.2.4, <template> support!
...
The failing <img> test comes from the now-correct parsing of <font face> elements
in SVG.
2015-09-08 10:28:21 +02:00
Anthony Ramine
880364b56d
Enable template tests
...
All tests using iframes can't currently pass, same for innerHTML-related tests
with <template> elements. The latter contradicts the spec, see the links below.
https://github.com/servo/html5ever/issues/164
https://github.com/w3c/DOM-Parsing/issues/1
2015-09-08 09:32:50 +02:00
Glenn Watson
a02d28a732
Handle cases where the layout root is None. Fixes #6375 .
2015-09-08 11:19:58 +10:00
Paul Rouget
f6582e7f21
Test for flexbox crasher
2015-09-07 09:02:53 +02:00
Patrick Walton
683290e109
layout: Use a special path that treats margin: auto
as zero for inline-block
...
inline size computation.
Places the search icon in the right place on the Google SERPs.
2015-09-04 20:42:57 -07:00
Ms2ger
58b5cd27de
Update CSS tests to revision 584b6cdd10401df603bd7bdf4ec801fcddc65468
2015-09-04 16:52:07 +02:00
bors-servo
05deb3dcc8
Auto merge of #7518 - servo:custom-properties, r=pcwalton
...
Initial support for CSS Custom Properties
https://drafts.csswg.org/css-variables/
Missing:
* `var()` in shorthand property declarations.
* Correct handling of EOF in custom property declarations.
r? @pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7518 )
<!-- Reviewable:end -->
2015-09-03 16:09:02 -06:00
Simon Sapin
b0aedc6f4c
Enable css-variables-1 tests
...
```
Summary
=======
Ran 548 tests (525 parents, 23 subtests)
Expected results: 242
Unexpected results: 306 (FAIL: 304, TIMEOUT: 2)
```
2015-09-03 23:02:23 +02:00
Matt Brubeck
afafb0b71c
Implement get_table_for_tag on FreeType
...
Also fixes use-after-free of FontTable buffers.
2015-09-03 13:35:44 -07:00
Ms2ger
509b050712
Disable html tests in __dir__.ini rather than include.ini.
...
This ensures those tests are skipped when running ./mach test-wpt html.
2015-09-03 17:02:06 +02:00
Sean McArthur
a1a9db8ffd
net: use connection pooling
2015-09-02 12:46:53 -04:00
bors-servo
e1ede2074d
Auto merge of #7429 - GyrosOfWar:serialize_list_space_fix, r=jdm
...
Fixed serialize_list to no longer append an additional space at the e…
…nd of the string.
Fixes #7404
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7429 )
<!-- Reviewable:end -->
2015-09-02 09:15:16 -06:00
bors-servo
4e6bbe2272
Auto merge of #7117 - frewsxcv:python-venv, r=jdm
...
Reenable "Use one Python virtual environment for all mach commands"
Address the issues brought up by https://github.com/servo/servo/pull/7103
The revert requires an upgrade to wptrunner (for the mozlog 3.0 compatibility) because the latest wptrunner depends on [this](https://github.com/w3c/wpt-tools/pull/27 ))
/cc @Ms2ger @metajack
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7117 )
<!-- Reviewable:end -->
2015-09-02 08:44:27 -06:00
Corey Farwell
96dda031a0
Update web-platform-tests expected data
2015-09-02 10:23:05 -04:00
bors-servo
eaf90c0b1c
Auto merge of #7452 - nox:cleanup-attributes, r=nox
...
Introduce VirtualMethods::attribute_mutated()
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7452 )
<!-- Reviewable:end -->
2015-09-02 08:14:33 -06:00
Martin Tomasi
ccddc3c13e
Fixed serialize_list to no longer append an additional space at the end of the string
2015-09-02 15:46:04 +02:00
Anthony Ramine
58e1bd0e57
Introduce VirtualMethods::attribute_mutated()
...
This replaces before_remove_attr(), after_remove_attr() and after_set_attr().
The virtual method takes the mutated attribute and an AttributeMutation value
to disambiguate between "attribute is changed", "attribute is added" and
"attribute is removed".
In the case of "attribute is changed", the mutation value contains a reference
to the old value of the mutated attribute, which is used to unregister outdated
named elements when the "id" attribute is changed on an element.
This greatly simplifies the handling of attributes, which in many cases don't
have any specific behaviour whether they are removed or changed or added. It
also fixes a few bugs where things were put in before_remove_attr() instead of
after_remove_attr() (e.g. when removing an href attribute from a base element).
A few helper functions in Element were also renamed and made private.
2015-09-02 15:45:38 +02:00
Corey Farwell
759c52d7eb
Upgrade wptrunner (tests/wpt/harness) to latest version
2015-09-02 09:33:58 -04:00
bors-servo
5478c7c24b
Auto merge of #7505 - frewsxcv:bump-wpt-css-tests, r=jdm
...
Update CSS tests to revision c8ec30de8099360ecf6581035bfdf2180fcc9755
Necessary for:
https://github.com/servo/servo/pull/7117
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7505 )
<!-- Reviewable:end -->
2015-09-02 06:56:54 -06:00
Corey Farwell
c51deb9a6e
Update CSS tests to revision c8ec30de8099360ecf6581035bfdf2180fcc9755
...
Necessary for:
https://github.com/servo/servo/pull/7117
2015-09-02 08:18:30 -04:00
Ms2ger
538f8f0ef9
Update web-platform-tests to revision cf8340b5fae7b820788ffc31f8cc6b6b04978002
2015-09-02 11:52:24 +02:00
bors-servo
a547ae6826
Auto merge of #7496 - servo:calc_, r=SimonSapin
...
Implement CSS3 Calc
This is #7185 with one commit added to make it build merged with master, which got support for the `ch` unit in the meantime.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7496 )
<!-- Reviewable:end -->
2015-09-02 02:33:18 -06:00
bors-servo
a844c0b0e8
Auto merge of #7500 - farodin91:viewport, r=jdm
...
Implement viewport functions for window #1718
@jdm r?
closes #6875
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7500 )
<!-- Reviewable:end -->
2015-09-01 21:31:25 -06:00
farodin91
f0987380dd
Implement viewport functions for window #1718
2015-09-02 00:40:52 +02:00
Patrick Walton
ce327b8231
tests: Mark some WPT tests as passing now.
2015-09-01 11:30:15 -07:00
Simon Sapin
80d471d5cf
Merge branch 'master' into calc
2015-09-01 18:39:16 +02:00
bors-servo
d46e4a6c4a
Auto merge of #7454 - Ms2ger:worker-tests, r=nox
...
Disable workers tests in __dir__.ini rather than include.ini.
This ensures those tests are skipped when running ./mach test-wpt workers.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7454 )
<!-- Reviewable:end -->
2015-08-31 01:34:02 -06:00
Ms2ger
14e55e3082
Disable workers tests in __dir__.ini rather than include.ini.
...
This ensures those tests are skipped when running ./mach test-wpt workers.
2015-08-31 09:12:52 +02:00
Josh Matthews
1461188349
Revert "Allow wptrunner to enable prefs for Servo."
...
This reverts commit 0d6f410a3f
.
2015-08-30 17:04:09 -04:00
Josh Matthews
606bad91b0
Revert "Enable experimental layout prefs for CSSWG reftests."
...
This reverts commit 447b5b560c
.
2015-08-30 17:03:57 -04:00
bors-servo
ccb8e46557
Auto merge of #7456 - jdm:cssprefs, r=jdm
...
Enable experimental layout prefs for CSSWG reftests.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7456 )
<!-- Reviewable:end -->
2015-08-30 14:04:10 -06:00
bors-servo
347e9b6ef4
Auto merge of #7228 - nox:urlutils-setters, r=jdm
...
Implement setters in URLUtils
This fixes #6145 and takes care of most of #4250 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7228 )
<!-- Reviewable:end -->
2015-08-30 12:40:53 -06:00
Anthony Ramine
9c4766bb0d
Implement setters in URLUtils
2015-08-30 19:47:33 +02:00
Josh Matthews
0d6f410a3f
Allow wptrunner to enable prefs for Servo.
2015-08-30 12:37:34 -04:00