L. David Baron
7a65a472a2
Make additional properties be reset by the 'font' shorthand.
...
A number of properties are supposed to be reset to initial values by the
'font' shorthand. This does so for all such properties that Servo
currently supports (conditional on when they're supported).
Fixes #15033 .
2017-02-02 12:28:52 -08:00
Simon Sapin
4701850f37
Add unicode-range descriptor to @font-face
2017-02-02 20:28:21 +01:00
Matt Brubeck
727a1fe3de
Update clap, clippy, deflate, flate2, open, unicode-segmentation, owning_ref, parking_lot, phf, quote, walkdir
2017-02-02 11:18:33 -08:00
Simon Sapin
0f351cb851
Fix incorrectly copy-pasted doc-comments.
2017-02-02 20:00:40 +01:00
Simon Sapin
f6bf397bb2
Add font-stretch descriptor to @font-face
2017-02-02 19:59:03 +01:00
Simon Sapin
fe8f5fad16
Add font-weight descriptor to @font-face
2017-02-02 19:58:40 +01:00
Simon Sapin
8767b0d7cc
Add font-style descriptor in @font-face
2017-02-02 19:57:40 +01:00
Simon Sapin
5405fb0d73
Use FamilyName instead of FontFamily in @font-face
...
… to exclude generic families, per spec:
https://drafts.csswg.org/css-fonts/#font-family-desc
2017-02-02 19:37:31 +01:00
Simon Sapin
52aa2431a9
Introduce a FamilyName type, like FontFamily but not a generic family.
2017-02-02 19:13:06 +01:00
Simon Sapin
44f6c60d91
Separate mandatory and optional descriptors in @font-face parsing macro.
2017-02-02 19:02:57 +01:00
Simon Sapin
4bcae573b3
Macroize @font-face descriptor definitions
2017-02-02 18:32:02 +01:00
Simon Sapin
2b83d844da
Use the Parse trait for @font-face
parsing.
2017-02-02 18:32:01 +01:00
Simon Sapin
7724bb01a3
Remove intermediate FontFaceDescriptorDeclaration enum.
...
Have `@font-face` parsing write to `FontFaceRule` directly.
2017-02-02 18:32:01 +01:00
bors-servo
fb7f65fc57
Auto merge of #15317 - emilio:style-attr-restyle, r=bholley
...
style: Avoid selector-matching when only the style attribute is changed.
r? @bholley
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15317 )
<!-- Reviewable:end -->
2017-02-02 03:00:22 -08:00
Emilio Cobos Álvarez
2594cb9c33
style: Refactor the traversal so it's more easy to read and straight-forward.
2017-02-02 11:58:36 +01:00
Emilio Cobos Álvarez
8859aa004f
style: Avoid selector-matching when only the style attribute is changed.
2017-02-02 11:58:08 +01:00
bors-servo
8aa23b46db
Auto merge of #15340 - upsuper:border-image-width, r=Wafflespeanut
...
Reject negative value for border-image-width
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15340 )
<!-- Reviewable:end -->
2017-02-02 01:10:21 -08:00
Xidorn Quan
bf52419716
Reject negative value for border-image-width
2017-02-02 17:09:10 +11:00
Xidorn Quan
d06ffc2289
Parse value entirely for setting property via CSSOM
...
Fixes #15037
2017-02-02 16:07:49 +11:00
Xidorn Quan
c8970f7e21
Ignore initial values in text-decoration
2017-02-02 15:41:56 +11:00
bors-servo
d161f6ec44
Auto merge of #13506 - veer66:master, r=mbrubeck
...
A test case change is added to #13442 : Fix #12193 Servo displays upper level Thai character in wrong place.
<!-- Please describe your changes on the following line: -->
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [ ] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [ ] These changes fix #__ (github issue number if applicable).
<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because _____
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13506 )
<!-- Reviewable:end -->
2017-02-01 12:08:44 -08:00
Vee Satayamas
c69567406e
Fix #12193 Servo displays upper level Thai character in wrong place.
2017-02-01 14:28:15 -05:00
bors-servo
b7887a1980
Auto merge of #15323 - Manishearth:gradient-stop, r=heycam
...
Ensure that gradients have at least 2 stops
fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1335656
r? @heycam
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15323 )
<!-- Reviewable:end -->
2017-02-01 11:17:13 -08:00
Josh Matthews
60d1717eca
Remove incorrect uses of asynchronous tasks from ServiceWorker job queue.
2017-02-01 12:54:33 -05:00
Josh Matthews
b5d2bd757b
Perform a microtask checkpoint after executing classic scripts and callbacks.
2017-02-01 12:54:33 -05:00
Josh Matthews
32d4f84a30
Generalize promise job queue into solitary microtask queue.
2017-02-01 12:54:33 -05:00
Matt Brubeck
083d1e9a76
Update bincode, byteorder, libc
2017-02-01 09:40:54 -08:00
bors-servo
bac2f68b54
Auto merge of #15327 - servo:missing-newline-wrap-panic, r=jdm
...
Add a missing newline in wrap_panic() calls.
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15327 )
<!-- Reviewable:end -->
2017-02-01 06:25:40 -08:00
Ms2ger
49ce1332e1
Add a missing newline in wrap_panic() calls.
2017-02-01 14:46:06 +01:00
Ms2ger
d9013e069c
Root the arguments to callback functions.
...
Note that this relies on the fact that Heap<JSVal> and JSVal are binary
compatible.
Fixes #15324 .
2017-02-01 14:27:37 +01:00
Manish Goregaokar
c0e1a1f963
Ensure that gradients have at least 2 stops
2017-01-31 22:23:00 -08:00
Manish Goregaokar
5117b7ec5a
Preallocate in deduplicate_property_declarations
2017-01-31 16:43:57 -08:00
Hiroyuki Ikezoe
35192b03c3
Assert if there is an important declaration while collecting animated properties in keyframes.
...
Parser has already dropped it.
2017-02-01 07:33:37 +09:00
Hiroyuki Ikezoe
a80725c91b
Allow empty keyframe and keyframes with non-animatable properties.
...
We need to create CSS animations that have empty keyframe or keyframes
which have only invalid properties or non-animatable properties to fire
animation events for such animations.
2017-02-01 07:06:38 +09:00
bors-servo
8421ae6077
Auto merge of #15111 - glennw:wr-update-generate, r=pcwalton
...
Update WR (radial gradients, generate_frame API, mac subpixel improvements, ANGLE shader support).
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15111 )
<!-- Reviewable:end -->
2017-01-31 11:49:18 -08:00
Glenn Watson
4cbefe82b5
Update WR (radial gradients, subpixel positioning, tiling changes).
2017-02-01 05:40:44 +10:00
Ms2ger
f376f9c2d7
Improve the readability of dictionaries' new() method.
2017-01-31 16:37:31 +01:00
bors-servo
166b304840
Auto merge of #15288 - emilio:style-attr-restyle, r=SimonSapin
...
Refactor more stuff in preparation for special handling for restyling using the style attribute
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15288 )
<!-- Reviewable:end -->
2017-01-30 14:54:26 -08:00
Emilio Cobos Álvarez
0b2c32a45a
style: Temporarily force selector matching for style attribute restyles.
...
The test failures on try were because of this.
2017-01-30 23:53:55 +01:00
Emilio Cobos Álvarez
f48328edfe
style: Remove a bit of unused code.
2017-01-30 23:53:54 +01:00
Emilio Cobos Álvarez
314f2ce714
style: Define a CascadeLevel enum, and make the rule tree operate on it.
...
We'll use this level to know where to stop replacing nodes in the tree.
2017-01-30 23:53:53 +01:00
Emilio Cobos Álvarez
31ecc9b692
script: Don't avoid all the mutation notification methods when the style attribute changes.
...
Styling was correct because of the explicit dirtiness, but still not fun.
Some things, like dynamic updates to with things like [style~="color"] ~ foo
selectors, were pretty broken, because we didn't take snapshots of those
attributes.
2017-01-30 19:24:42 +01:00
Emilio Cobos Álvarez
cb304fd42c
script: insert the restyle attribute restyle hint when a style attribute is modified.
2017-01-30 19:24:42 +01:00
Emilio Cobos Álvarez
d37e6f8c66
script: Propagate the attribute into the document's element_attr_will_change method.
2017-01-30 19:24:42 +01:00
Emilio Cobos Álvarez
7a9cdbb857
style: Add a style attribute restyle hint.
2017-01-30 19:24:41 +01:00
Andreas Tolfsen
96ce7dbba2
webdriver_server, constellation, libservo, servo: upgrade webdriver and backtrace
...
Upgrades to webdriver v0.20.0 and backtrace v0.3
2017-01-30 17:05:48 +00:00
bors-servo
81712560ca
Auto merge of #15300 - servo:blob-fragment, r=Wafflespeanut
...
Remove unused part of the return value of parse_blob_url().
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15300 )
<!-- Reviewable:end -->
2017-01-30 06:21:46 -08:00
Ms2ger
f4ab3ac54d
Remove unused part of the return value of parse_blob_url().
2017-01-30 15:16:27 +01:00
bors-servo
cc2011c050
Auto merge of #15264 - servo:content-type, r=nox
...
Always set the Document::contentType attribute in ScriptThread::load().
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg " height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15264 )
<!-- Reviewable:end -->
2017-01-30 05:33:14 -08:00
Ms2ger
69e3173047
Always set the Document::contentType attribute in ScriptThread::load().
...
There's no good reason to limit this to a few particular content types.
2017-01-30 12:43:49 +01:00