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
Michael Howell
6228edfb4c
Include the overflow of the inline block itself.
...
Closes #7372 .
2015-09-07 20:27:06 -07: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
bors-servo
aeb8dce2d9
Auto merge of #7534 - pcwalton:inline-absolute-out-of-flow, r=mbrubeck
...
layout: Lay absolutely-positioned blocks with inline containing blocks out of flow.
Removes the long space before the site-specific drop-down in the Google SERPs.
r? @glennw
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7534 )
<!-- Reviewable:end -->
2015-09-04 19:59:11 -06:00
bors-servo
5bad6b1b6e
Auto merge of #7502 - bjwbell:elliptical-borders, r=pcwalton
...
gfx: Add elliptical border radius support
TODO: Add code for parsing shorthand border-radius e.g. "border-radius: 10px 5% / 20px".
r? @pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7502 )
<!-- Reviewable:end -->
2015-09-04 18:46:24 -06:00
Patrick Walton
ded4a5793e
layout: Defend the block formatting context speculation against going wrong in
...
the presence of blocks that overflow in the inline direction.
Makes the Google search result links appear.
Closes #7298 .
2015-09-04 17:00:15 -07:00
Bryan Bell
3e5fb49b6f
gfx: Add elliptical border radius support
2015-09-04 14:42:44 -07:00
Patrick Walton
2276d642fd
layout: Stop double-counting position: relative
offsets for stacking
...
contexts.
Fixes the location of the gear menu on the Google SERPs.
2015-09-04 09:28:18 -07:00
bors-servo
14c6d5db41
Auto merge of #7540 - servo:update-css, r=Ms2ger
...
Update CSS tests to revision 584b6cdd10401df603bd7bdf4ec801fcddc65468
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7540 )
<!-- Reviewable:end -->
2015-09-04 08:52:30 -06:00
Ms2ger
58b5cd27de
Update CSS tests to revision 584b6cdd10401df603bd7bdf4ec801fcddc65468
2015-09-04 16:52:07 +02:00
João Oliveira
4a305d1e62
Add style_traits crate to improve crate separation,
...
closes #7353
2015-09-04 12:59:37 +01:00
Patrick Walton
dba3e41a63
layout: Lay absolutely-positioned blocks with inline containing blocks out of
...
flow.
Removes the long space before the site-specific drop-down in the Google SERPs.
2015-09-03 15:37:40 -07: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
Simon Sapin
5fb6acb753
Rename DeclaredValue::SpecifiedValue to DeclaredValue::Value
2015-09-03 23:02:15 +02:00
bors-servo
0ad284766b
Auto merge of #7443 - mbrubeck:get_table, r=pcwalton
...
Implement get_table_for_tag on FreeType
Updates freetype to pick up servo/rust-freetype#37
r? @glennw
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7443 )
<!-- Reviewable:end -->
2015-09-03 14:37:38 -06: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
Patrick Walton
ee8741b7a8
layout: Fix several bugs relating to inline borders, padding, and
...
margins.
* The code that attempted to strip out borders that span multiple
fragments in the same element could go wrong if fragments were
stripped out due to text clumping or whitespace stripping. This patch
rewrites that code to maintain flags in the inline fragment context
specifying whether the node is the beginning or end of the element.
Not only is this easier to maintain, it's closer in spirit to what roc
originally suggested two years ago: it's isomorphic to "begin element,
end element" markers for inline layout.
* Padding and margins for spans containing inline-blocks are now
properly handled via a division of labor between the `InlineBlock`
fragment and the `BlockFlow` that represents the inline-block.
* Unscanned text fragments may not be joined together into a text run if
borders, padding, or margins separate them.
Because Servo now matches the rendering of Gecko and WebKit on the
`input_button_margins_a` reftest, I had to modify it to add some
vertical alignment.
The combined effect of all of these fixes places "Advertising" on the
right place on google.com.
2015-09-03 10:24:59 -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
e38df50bbf
Revert "Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests."
...
This reverts commit 47d6d958f5
.
2015-09-02 09:34:01 -04: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
Simon Sapin
9f48dcd858
Fix font-size keywords parsing.
2015-09-02 09:54:38 +02:00
Simon Sapin
40b4348824
Upgrade to rustc 1.4.0-dev (cb9323ec0 2015-09-01)
2015-09-02 09:22:17 +02:00
bors-servo
ba2cb77c26
Auto merge of #7503 - mrobinson:iframe-issue, r=glennw
...
Upgrade to the latest rust-layers
This should fix a bug where hidden iframes are not properly clipped
away from the compositor scene. This commit adds a test for this
behavior.
Fixes #6849 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7503 )
<!-- Reviewable:end -->
2015-09-01 22:18:52 -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
Martin Robinson
bc824f117c
Upgrade to the latest rust-layers
...
This should fix a bug where hidden iframes are not properly clipped
away from the compositor scene. This commit adds a test for this
behavior.
Fixes #6849 .
2015-09-01 17:57:57 -07:00
farodin91
f0987380dd
Implement viewport functions for window #1718
2015-09-02 00:40:52 +02:00
bors-servo
e46499a5df
Auto merge of #7498 - pcwalton:inline-absolute-containing-blocks, r=mbrubeck
...
layout: Implement partial support for inline absolute containing blocks.
Improves the position of the down arrows on google.com SERPs.
r? @mbrubeck
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7498 )
<!-- Reviewable:end -->
2015-09-01 16:36:58 -06:00